Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '[1]:': 0.09; '[2]:': 0.09; 'dan': 0.09; 'differently.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'windows,': 0.09; 'python': 0.11; 'jan': 0.12; 'windows': 0.15; 'digits.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'time.time()': 0.16; 'thursday,': 0.16; 'wrote:': 0.18; 'subject:need': 0.19; 'thu,': 0.19; '>>>': 0.22; 'import': 0.22; 'header:User-Agent:1': 0.23; 'specify': 0.24; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'dec': 0.30; 'gives': 0.31; 'getting': 0.31; 'decimal': 0.31; 'time;': 0.31; 'probably': 0.32; 'know.': 0.32; 'subject:the': 0.34; 'subject:from': 0.34; 'december': 0.35; 'but': 0.35; 'version': 0.36; 'somebody': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'dave': 0.60; 'received:173': 0.61; "you're": 0.61; 'email addr:gmail.com': 0.63; '26,': 0.68; '3.4': 0.84; 'received:fios.verizon.net': 0.84; 'angel': 0.91; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: need to print seconds from the epoch including the millisecond Date: Thu, 26 Dec 2013 20:03:34 -0500 References: <59aa73ac-e06e-4c0e-83a4-147ac42cad2e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-254-207.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1388106237 news.xs4all.nl 2972 [2001:888:2000:d::a6]:53971 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62758 On 12/26/2013 5:48 PM, Dave Angel wrote: > On Thu, 26 Dec 2013 14:06:17 -0800 (PST), matt.doolittle33@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