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
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.
Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.