JAVA/CORBA CLASSES


Examples: GMTTime property
This agent prints the creation date and time of the current database in GMT.

import lotus.domino.*;
public class JavaAgent extends AgentBase {
 public void NotesMain() {
   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();
     // (Your code goes here)
     Database db = agentContext.getCurrentDatabase();
     DateTime createdDateTime = db.getCreated();
     String sGMTTime = createdDateTime.getGMTTime();
     System.out.println
     ("Database \"" + db.getTitle() +
     "\" was created on " + sGMTTime + ".");
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also