java.sql.Timestamp and the Epoch
Hello all
according to the JavaDoc for Timestamp, the long parameter of the constructor represents "milliseconds since January 1, 1970, 00:00:00 GMT". However, running
class Main
{
publicstaticvoid main (String [] args)
{
System.out.println (new java.sql.Timestamp (0l));
}
}
produces 1970-01-01 01:00:00.0
, which is 3.6 million ms since the time stated in the doc.
My box is set to GMT. Does anyone know of an explanation for this?
Cheers

