Serializable
, Cloneable
, Comparable<Date>
public class AS400JDBCTimestamp extends Timestamp
Timestamp
,
Serialized FormConstructor | Description |
---|---|
AS400JDBCTimestamp(long time) |
Create an AS400JDBC Timestamp
|
AS400JDBCTimestamp(long time,
int length) |
Create an AS400JDBC Timestamp
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
after(Timestamp ts) |
Indicates whether this Timestamp object is later than the given Timestamp object.
|
boolean |
before(Timestamp ts) |
Indicates whether this Timestamp object is earlier than the given Timestamp object.
|
int |
compareTo(Timestamp ts) |
Compares this Timestamp object to the given Timestamp object.
|
int |
compareTo(Date o) |
Compares this Timestamp object to the given Date, which must be a Timestamp object.
|
boolean |
equals(Object obj) |
Tests to see if this Timestamp object is equal to the given object.
|
boolean |
equals(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.
|
String |
toString() |
|
static Timestamp |
valueOf(String inString) |
from, getTime, hashCode, toInstant, toLocalDateTime, valueOf
after, before, clone, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTimezoneOffset, getYear, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, UTC
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()
public void setNanos(int nanos)
public void setTime(long millis)
setTime
in class Timestamp
millis
- -- the number of millisecondsTimestamp.setTime(long)
public boolean equals(Timestamp ts)
equals
in class Timestamp
ts
- the Timestamp value to compare withTimestamp.equals(java.sql.Timestamp)
public boolean equals(Object obj)
public boolean before(Timestamp ts)
before
in class Timestamp
ts
- - the Timestamp value to compare withTimestamp.before(java.sql.Timestamp)
public boolean after(Timestamp ts)
after
in class Timestamp
ts
- - the Timestamp value to compare withTimestamp.after(java.sql.Timestamp)
public int compareTo(Timestamp ts)
compareTo
in class Timestamp
ts
- - the Timestamp object to be compared to this Timestamp objectTimestamp.compareTo(java.sql.Timestamp)
public int compareTo(Date o)
compareTo
in interface Comparable<Date>
compareTo
in class Timestamp
o
- - the Date to be compared, which must be a Timestamp objectClassCastException
- - if the argument is not a Timestamp objectDate.compareTo(java.util.Date)
Copyright © 2024. All rights reserved.