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
-
Timestamp()
- The default constructor.
-
Timestamp(long)
- Creates a
TimeStamp object using the user parameter.
-
Timestamp(long, long)
- Creates a
TimeStamp object using the user parameters.
-
getDate()
- Returns the current date.
-
getDateTime()
- Returns the current date.
-
getSysUpTime()
- Returns the time (in hundreds of a second) since the
network management portion of the system was last re-initialized.
-
getTimeTicks()
- Returns the
SnmpTimeticks object corresponding to the
TimeStamp object.
-
toString()
- Returns a
String representation of the TimeStamp object.
Timestamp
public Timestamp()
- The default constructor. Sysuptime is 0. This just indicates when this object
was created.
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.
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.
getTimeTicks
public final synchronized SnmpTimeticks getTimeTicks()
- Returns the
SnmpTimeticks object corresponding to the
TimeStamp object.
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.
getDate
public final synchronized Date getDate()
- Returns the current date.
- Returns:
- s A
Date object representing the current date.
getDateTime
public final long getDateTime()
- Returns the current date.
- Returns:
- s A
long representing the current date.
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