need to print seconds from the epoch including the millisecond

Roy Smith roy at
Fri Dec 27 02:29:15 CET 2013

In article <59aa73ac-e06e-4c0e-83a4-147ac42cad2e at>,
 matt.doolittle33 at wrote:

> > In [1]: import time
> > In [2]: time.time()
> > Out[2]: 1388085670.1567955
> OK i did what you said but I am only getting 2 decimal places.  
> Why is this and what can I do to get the millisecond?  

What operating system are you on?  The Python time routines can only 
return as much precision as the operating system makes available.

More information about the Python-list mailing list