JAVA/CORBA CLASSES


Examples: TimeOnly property
This agent prints the creation time of the current database.

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 sCreatedTime = createdDateTime.getTimeOnly();
     System.out.println
     ("Database \"" + db.getTitle() +
     "\" was created at " + sCreatedTime + ".");
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also