need to print seconds from the epoch including the millisecond
Terry Reedy
tjreedy at udel.edu
Thu Dec 26 20:03:34 EST 2013
On 12/26/2013 5:48 PM, Dave Angel wrote:
> On Thu, 26 Dec 2013 14:06:17 -0800 (PST), matt.doolittle33 at gmail.com wrote:
>> On Thursday, December 26, 2013 2:22:10 PM UTC-5, Dan Stromberg
> 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.
>
> You're probably on Windows, which does time differently.
With 3.3 and 3.4 on Windows 7, time.time() gives 6 fractional digits.
>>> import time; time.time()
1388105935.971099
> Specify your os version and python version and somebody will probably
know.
With 2.7, same machine, I only get 3.
--
Terry Jan Reedy
More information about the Python-list
mailing list