G
Greg B
according to http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Timestamp.html#toString(),
Returns:
a String object in yyyy-mm-dd hh:mm:ss.fffffffff format
however, when I do
import java.sql.Timestamp;
...
Timestamp ts = new Timestamp(1000);
System.out.println("Timestamp.toString(): " + ts.toString());
I get
Timestamp.toString(): 1970-01-01 10:00:01.0 (notice the formatting of
the nanos).
if I were to do ts.setNanos(1), then my output screen would contain
the 01.00000001
Returns:
a String object in yyyy-mm-dd hh:mm:ss.fffffffff format
however, when I do
import java.sql.Timestamp;
...
Timestamp ts = new Timestamp(1000);
System.out.println("Timestamp.toString(): " + ts.toString());
I get
Timestamp.toString(): 1970-01-01 10:00:01.0 (notice the formatting of
the nanos).
if I were to do ts.setNanos(1), then my output screen would contain
the 01.00000001