All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.util.Date
|
+----java.sql.Timestamp
This class is a thin wrapper around java.util.Date that allows JDBC to identify this as a SQL TIMESTAMP value. It adds the ability to hold the SQL TIMESTAMP nanos value and provides formatting and parsing operations to support the JDBC escape syntax for timestamp values.
Note: This type is a composite of a java.util.Date and a separate nanos value. Only integral seconds are stored in the java.util.Date component. The fractional seconds - the nanos - are separate. The getTime method will only return integral seconds. If a time value that includes the fractional seconds is desired you must convert nanos to milliseconds (nanos/1000000) and add this to the getTime value. Also note that the hashcode() method uses the underlying java.util.Data implementation and therefore does not include nanos in its computation.
method Timestamp(year=int, -
month=int, -
date=int, -
hour=int, -
minute=int, -
second=int, -
nano=int) public
method Timestamp(time=long) public
method valueOf(s=String) returns Timestamp public static
method toString() returns String public
method getNanos() returns int public
method setNanos(n=int) public
method equals(ts=Timestamp) returns boolean public
method before(ts=Timestamp) returns boolean public
method after(ts=Timestamp) returns boolean public
All Packages Class Hierarchy This Package Previous Next Index