All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.snmp.manager.Timestamp

java.lang.Object
   |
   +----com.sun.jaw.snmp.manager.Timestamp

public final class Timestamp
extends Object
implements Serializable

Constructor Index

 o Timestamp()
The default constructor.
 o Timestamp(long)
Creates a TimeStamp object using the user parameter.
 o Timestamp(long, long)
Creates a TimeStamp object using the user parameters.

Method Index

 o getDate()
Returns the current date.
 o getDateTime()
Returns the current date.
 o getSysUpTime()
Returns the time (in hundreds of a second) since the network management portion of the system was last re-initialized.
 o getTimeTicks()
Returns the SnmpTimeticks object corresponding to the TimeStamp object.
 o toString()
Returns a String representation of the TimeStamp object.

Constructors

 o Timestamp
 public Timestamp()
The default constructor. Sysuptime is 0. This just indicates when this object was created.

 o Timestamp
 public Timestamp(long uptime,
                  long when)
Creates a TimeStamp object using the user parameters.

Parameters:
uptime - The time (in hundreds of a second) since the network management portion of the system was last re-initialized.
when - The current time.
 o Timestamp
 public Timestamp(long uptime)
Creates a TimeStamp object using the user parameter.

Parameters:
uptime - The time (in hundreds of a second) since the network management portion of the system was last re-initialized.

Methods

 o getTimeTicks
 public final synchronized SnmpTimeticks getTimeTicks()
Returns the SnmpTimeticks object corresponding to the TimeStamp object.

 o getSysUpTime
 public final long getSysUpTime()
Returns the time (in hundreds of a second) since the network management portion of the system was last re-initialized.

 o getDate
 public final synchronized Date getDate()
Returns the current date.

Returns:
s A Date object representing the current date.
 o getDateTime
 public final long getDateTime()
Returns the current date.

Returns:
s A long representing the current date.
 o toString
 public final String toString()
Returns a String representation of the TimeStamp object.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index