Domino Code Fragment
Code Name* lotus.notes.DateTime class | Date* 04/29/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.3.134.102.182 | |
Description* 3. This script creates a new lotus.notes.DateTime object that represents today's date and then prints it in local time. The time component of the lotus.notes.DateTime object is not set. | Type* Java | Categories* Date/Time Handling |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
public class datetime3agent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
DateTime dt = s.createDateTime("Today");
System.out.println(dt.getLocalTime());
}
catch (Exception e)
{
e.printStackTrace();
}
}
}