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

[794 byte] By [lrbha] at [2007-11-26 15:15:27]
# 1
I'd say that extra hour is the daylight savings hour.The GMT timezone uses it, but UTC ( Universal time coordinates ) doesn't.regards,Owen
omcgoverna at 2007-7-8 9:07:09 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...