Domino Code Fragment
Code Name* lotus.notes.DateTime class | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.13.58.112.1 | |
Description* 1. This agent creates a new lotus.notes.DateTime object and prints it in local time and GMT. | Type* Java | Categories* Date/Time Handling |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
public class datetime1agent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
DateTime dt = s.createDateTime("12/12/97 04:30:00 PM");
System.out.println(dt.getLocalTime());
System.out.println(dt.getGMTTime());
}
catch (Exception e)
{
e.printStackTrace();
}
}
}