From: Mike H. <th...@bi...> - 2002-03-05 21:52:08
|
On Tue, Mar 05, 2002 at 02:02:59PM -0700, Campbell, Garrett wrote: > looks like utc seconds vs local milliseconds > look at the doc. Yeah, you're right -- from the Java docs: getTime public long getTime() Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object. But Python says the same thing: (from http://www.python.org/doc/current/lib/module-time.html) time() Return the time as a floating point number expressed in seconds since the epoch, in UTC. And in Jython, it says that is is the same epoch >>> time.gmtime(0) (1970, 1, 1, 0, 0, 0, 3, 1, 0) >>> time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime(0)) 'Thu, 01 January 1970 00:00:00 +0000' This only deepens the mystery . . . -- mikeh |