Methods Summary |
---|
public final synchronized java.util.Date | getDate()Gets the current date.
if (dateCache == null)
dateCache = new Date(crtime) ;
return dateCache ;
|
public final long | getDateTime()Gets the current date.
return crtime ;
|
public final long | getSysUpTime()Gets the time (in hundredths of a second) since the network management portion of the system
was last re-initialized.
return sysUpTime ;
|
public final synchronized SnmpTimeticks | getTimeTicks()Gets the SnmpTimeticks object corresponding to the TimeStamp object.
if (uptimeCache == null)
uptimeCache = new SnmpTimeticks((int)sysUpTime) ;
return uptimeCache ;
|
public final java.lang.String | toString()Returns a String representation of the TimeStamp object.
StringBuffer buf = new StringBuffer() ;
buf.append("{SysUpTime = " + SnmpTimeticks.printTimeTicks(sysUpTime)) ;
buf.append("} {Timestamp = " + getDate().toString() + "}") ;
return buf.toString() ;
|