public class AS400JDBCTimestamp
extends java.sql.Timestamp
Timestamp,
Serialized Form| Constructor and Description |
|---|
AS400JDBCTimestamp(long time)
Create an AS400JDBC Timestamp
|
AS400JDBCTimestamp(long time,
int length)
Create an AS400JDBC Timestamp
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
after(java.sql.Timestamp ts)
Indicates whether this Timestamp object is later than the given Timestamp object.
|
boolean |
before(java.sql.Timestamp ts)
Indicates whether this Timestamp object is earlier than the given Timestamp object.
|
int |
compareTo(java.util.Date o)
Compares this Timestamp object to the given Date, which must be a Timestamp object.
|
int |
compareTo(java.sql.Timestamp ts)
Compares this Timestamp object to the given Timestamp object.
|
boolean |
equals(java.lang.Object obj)
Tests to see if this Timestamp object is equal to the given object.
|
boolean |
equals(java.sql.Timestamp ts)
Tests to see if this Timestamp object is equal to the given Timestamp object.
|
int |
getNanos()
Gets this Timestamp object's nanos value.
|
long |
getPicos()
Get this Timestamp objects' picos value.
|
void |
setNanos(int nanos)
Sets the nanos values for this Timestamp object.
|
void |
setPicos(long picos)
Sets the picos value for this Timestamp object.
|
void |
setTime(long millis)
Sets this Timestamp object to represent a point in time that is time milliseconds after January 1, 1970 00:00:00 GMT.
|
java.lang.String |
toString() |
static java.sql.Timestamp |
valueOf(java.lang.String inString) |
public AS400JDBCTimestamp(long time,
int length)
time - milliseconds since January 1, 1970, 00:00:00 GMT.length - Length of the formatted timestamp. Valid values are 19,21-32public AS400JDBCTimestamp(long time)
time - milliseconds since January 1, 1970, 00:00:00 GMT.public long getPicos()
public void setPicos(long picos)
picos - public int getNanos()
getNanos in class java.sql.Timestamppublic void setNanos(int nanos)
setNanos in class java.sql.Timestamppublic java.lang.String toString()
toString in class java.sql.Timestamppublic void setTime(long millis)
setTime in class java.sql.Timestampmillis - -- the number of millisecondsTimestamp.setTime(long)public boolean equals(java.sql.Timestamp ts)
equals in class java.sql.Timestampts - the Timestamp value to compare withTimestamp.equals(java.sql.Timestamp)public boolean equals(java.lang.Object obj)
equals in class java.sql.Timestamppublic boolean before(java.sql.Timestamp ts)
before in class java.sql.Timestampts - - the Timestamp value to compare withTimestamp.before(java.sql.Timestamp)public boolean after(java.sql.Timestamp ts)
after in class java.sql.Timestampts - - the Timestamp value to compare withTimestamp.after(java.sql.Timestamp)public int compareTo(java.sql.Timestamp ts)
compareTo in class java.sql.Timestampts - - the Timestamp object to be compared to this Timestamp objectTimestamp.compareTo(java.sql.Timestamp)public int compareTo(java.util.Date o)
compareTo in interface java.lang.Comparable<java.util.Date>compareTo in class java.sql.Timestampo - - the Date to be compared, which must be a Timestamp objectjava.lang.ClassCastException - - if the argument is not a Timestamp objectDate.compareTo(java.util.Date)public static java.sql.Timestamp valueOf(java.lang.String inString)