Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed3.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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'rounds': 0.09; 'windows,': 0.09; 'message- id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:need': 0.19; '>>>': 0.22; 'print': 0.22; 'url:home': 0.24; 'header:X-Complaints-To:1': 0.27; 'dec': 0.30; 'decimal': 0.31; 'thanks!': 0.32; 'ago': 0.33; 'fri,': 0.33; 'maybe': 0.34; 'subject:the': 0.34; 'subject:from': 0.34; 'ubuntu': 0.36; 'charset:us-ascii': 0.36; 'to:addr:python- list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'email addr:gmail.com': 0.63; 'note:': 0.66; 'amount.': 0.84; 'received:108': 0.93; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: need to print seconds from the epoch including the millisecond Date: Fri, 27 Dec 2013 13:14:39 -0500 Organization: IISS Elusive Unicorn References: <59aa73ac-e06e-4c0e-83a4-147ac42cad2e@googlegroups.com> <0c33b7e4-edc9-4e1e-b919-fec210c92d4a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-68-178-129.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: 1388168085 news.xs4all.nl 2844 [2001:888:2000:d::a6]:54184 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62817 On Fri, 27 Dec 2013 07:40:29 -0800 (PST), matt.doolittle33@gmail.com declaimed the following: > >I am on Ubuntu 12.10. I am still working with the 2 decimal places. Sometime ago i had this issue and I forget how i solved it. maybe i used datetime? thanks! Are you "print"ing the value? >>> x = time.time(); print x, repr(x) 1388167958.83 1388167958.831 >>> x = time.time(); print x, repr(x) 1388167963.92 1388167963.919 >>> x = time.time(); print x, repr(x) 1388167967.23 1388167967.231 Note: this is on Windows, with its small fractional amount. Note that printing the value rounds to 2 places. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/