|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bmc.arsys.api.Timestamp
public class Timestamp
The Timestamp
class represents the time
at which an operation was performed.
Constructor Summary | |
---|---|
Timestamp()
constructor |
|
Timestamp(Date d)
|
|
Timestamp(long l)
Initializes Timestamp with the specified number of seconds (not milli-seconds)
elapsed since standard base time("epoch time"). |
Method Summary | |
---|---|
Object |
clone()
Clone implementation that returns an Object with data cloned from self. |
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the provided one. |
long |
getValue()
Returns the number of seconds since January 1, 1970 (according to UNIX® conventions). |
int |
hashCode()
Returns the hash code value for this instance of the current class. |
void |
setValue(Date d)
Sets the time from the given date. |
void |
setValue(long l)
Sets the number of seconds for the time (in long integer format). |
void |
setValue(Timestamp ts)
Sets the time to the time of the given timestamp. |
Date |
toDate()
Returns the date in the java.util.Date format. |
String |
toString()
Returns a string description of the object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Timestamp()
public Timestamp(long l)
Timestamp
with the specified number of seconds (not milli-seconds)
elapsed since standard base time("epoch time").
l
- public Timestamp(Date d)
Method Detail |
---|
public void setValue(long l)
long
integer format).
public void setValue(Timestamp ts)
public void setValue(Date d)
public long getValue()
public Date toDate()
java.util.Date
format.
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- the object that we are comparing to
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public int hashCode()
hashCode
in class Object
|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |