7.0 Action Request System Java API

com.remedy.arsys.api
Class Timestamp

java.lang.Object
  extended bycom.remedy.arsys.api.Timestamp
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class Timestamp
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

The Timestamp class represents the time at which an operation was performed.

See Also:
Serialized Form

Constructor Summary
Timestamp()
          constructor
Timestamp(java.util.Date d)
           
Timestamp(long l)
           
 
Method Summary
 java.lang.Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(java.lang.Object anObject)
          Use this method for checking equality of Timestamp.
 long getValue()
          Returns the number of seconds since January 1, 1970 (according to UNIX conventions).
 void setValue(java.util.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.
 java.util.Date toDate()
          Returns the date in the java.util.Date format.
 java.lang.String toString()
          Returns a string description of the timestamp.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Timestamp

public Timestamp()
constructor


Timestamp

public Timestamp(long l)

Timestamp

public Timestamp(java.util.Date d)
Method Detail

setValue

public void setValue(long l)
Sets the number of seconds for the time (in long integer format).


setValue

public void setValue(Timestamp ts)
Sets the time to the time of the given timestamp.


setValue

public void setValue(java.util.Date d)
Sets the time from the given date.


getValue

public long getValue()
Returns the number of seconds since January 1, 1970 (according to UNIX conventions).


toDate

public java.util.Date toDate()
Returns the date in the java.util.Date format.


toString

public java.lang.String toString()
Returns a string description of the timestamp.


equals

public boolean equals(java.lang.Object anObject)
Use this method for checking equality of Timestamp. The result is true only if the argument is not null and is a Timestamp object that represents the same content.


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.

Throws:
java.lang.CloneNotSupportedException

7.0 Action Request System Java API