JAVA/CORBA CLASSES


Examples: convertToZone method and ZoneTime property
This agent converts today at 6:00 AM to all the time zones using daylight-saving time.

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 06:00");
     System.out.println("Zone\tTime");
     for(int i=-12; i<=12; i++) {
       dt.convertToZone(i, true);
       System.out.println(dt.getTimeZone() + "\t" +
            dt.getZoneTime());
       }

   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also