|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.ca.Timestamp
Timestamp
| Field Summary | |
protected java.math.BigDecimal |
_timestamp
|
| Constructor Summary | |
Timestamp(java.math.BigDecimal timestamp)
Construct a Timestamp from the full precision seconds since the Java epoch. |
|
Timestamp(java.sql.Timestamp timestamp)
Construct a Timestamp from a java.sql.Timestamp |
|
| Method Summary | |
int |
compareTo(java.lang.Object otherTimestamp)
Compare this timestamp with another timestamp. |
java.util.Date |
getDate()
Get the times tamp as a Java Date. |
java.math.BigDecimal |
getFullSeconds()
Get the time in seconds with full precision since the Java epoch. |
double |
getSeconds()
Get the time in seconds since the Java epoch. |
java.sql.Timestamp |
getSQLTimestamp()
Get the SQL Timestamp equivalent of this instance. |
long |
getTime()
Get the timestamp in milliseconds relative to the Java epoch. |
java.lang.String |
toString()
Get a string representation of the Timestamp. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.math.BigDecimal _timestamp
| Constructor Detail |
public Timestamp(java.math.BigDecimal timestamp)
public Timestamp(java.sql.Timestamp timestamp)
| Method Detail |
public java.util.Date getDate()
public long getTime()
public double getSeconds()
public java.math.BigDecimal getFullSeconds()
public java.sql.Timestamp getSQLTimestamp()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object otherTimestamp)
compareTo in interface java.lang.ComparableotherTimestamp - The timestamp with which to compare this one
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||