Examples: IsDST property

This agent prints one message or another depending on whether daylight-saving time is in effect.

import lotus.domino.*;
public class JavaAgent extends AgentBase {
  public void NotesMain() {
    try {
      Session session = getSession();
      AgentContext agentContext = session.getAgentContext();
      // (Your code goes here) 
      DateTime dt = session.createDateTime("Today");
      dt.setNow();
      if (dt.isDST())
        System.out.println("Enjoy the long days");
      else
        System.out.println("Endure the darkness");
    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}