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:.3.21.104.109 | |
Description* 4. This script creates two new lotus.notes.DateTime objects. The first represents January 15, 1900; the second represents January 15, 2000. | Type* Java | Categories* Date/Time Handling |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
public class datetime6agent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
DateTime dt1 = s.createDateTime("01/15/1900");
DateTime dt2 = s.createDateTime("01/15/00");
System.out.println(dt1.getLocalTime());
System.out.println(dt2.getLocalTime());
}
catch (Exception e)
{
e.printStackTrace();
}
}
}