Domino Code Fragment
| Code Name* AdjustSecond method | Date* 10/26/2025 | Source (or email address if you prefer)* [email protected] IP address:.172.69.130.3 | |
| Description* This agent decrements the time by 10 seconds. | Type* Java | Categories* Date/Time Handling | |
| Implementation: | Required Client: | Server: |
| Limitations: | Comments: | |
public class adjustsecondagent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
DateTime dt = s.createDateTime("");
dt.setNow();
System.out.println("Now: " + dt.getLocalTime());
dt.adjustSecond(-10, true);
System.out.println("Ten seconds ago: " + dt.getLocalTime());
}
catch (Exception e)
{
e.printStackTrace();
}
}
}