From: Kevin B. <kb...@ca...> - 2002-03-05 21:13:50
|
Mike Hostetler wrote: > >>> time.time() > 1.015358378608E9 > >>> float(wItems[0].JobStartDate.getTime()) > 1.015268088E12 J/Python reports _seconds_ since Jan 1, 1970 Java reports _milliseconds_ since Jan 1, 1970 >>> import time >>> from java.util import * >>> Date().getTime() - time.time() * 1000 -47.0 >>> Date().getTime() - time.time() * 1000 0.0 >>> Date().getTime() - time.time() * 1000 0.0 >>> Date().getTime() - time.time() * 1000 0.0 >>> Date().getTime() - time.time() * 1000 0.0 >>> Date().getTime() - time.time() * 1000 0.0 >>> Date().getTime() - time.time() * 1000 0.0 Darn my timing on that first one! >>> for i in range( 1000 ): ... if ( Date().getTime() != time.time() * 1000 ): print "woops" ... woops woops woops woops woops >>> 1/2 of 1 % chance, and I hit different clock ticks. *sigh* :-) Actually, it was probably the first call initialization/class loading... kb |