Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.stack.nl!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.047 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'win32': 0.03; 'subject:How': 0.10; 'python': 0.11; '33,': 0.16; 'timestamp': 0.16; 'all,': 0.19; 'bit': 0.19; '>>>': 0.22; 'import': 0.22; 'message-id:@mail.gmail.com': 0.30; '13,': 0.31; 'skip:d 20': 0.34; 'subject:the': 0.34; 'subject:from': 0.34; 'received:google.com': 0.35; 'there': 0.35; 'subject:?': 0.36; 'hi,': 0.36; 'thank': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'you.': 0.62; 'more': 0.64; 'subject:get': 0.81; '2013,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3+m0qKT83G2bmnn3oc8LXc0GpcJXDzizM2aDHwK7CuQ=; b=DoFU/odhbBw5+GAVeTw5oQtlI95iBTIwr2mJt8licn/n0vAWYAp9ZM0cMti9xAQ/7O RKtEVUb4HZ99+Ftzcf1Oo6EXHkk+yHFDIL62bA8ZANwfxjatduD8Azpll27Z2JCmcp28 /na+T0gPnryVW8LqybKlz8RNrzkCUXU9jSVISqL9HuIJLY293IK28/9SxzK3iRv2NB2r MAL8kUBxKTs18U9CKnMOKpoIzhx80L4ZU8LnaFd+5483j4L6cRWgtqNuKimHIG4Tq04k hgviUikAgmGL0nzNr4x5xQy+d0FeB1G/LekgGkVNGlrQkoxg3yFonThDeJSrRBIIl0Od KRmA== MIME-Version: 1.0 X-Received: by 10.58.207.74 with SMTP id lu10mr37097443vec.15.1398134321154; Mon, 21 Apr 2014 19:38:41 -0700 (PDT) Date: Mon, 21 Apr 2014 19:38:40 -0700 Subject: How to properly get the microseconds from the timestamps? From: Igor Korot To: python-list@python.org Content-Type: text/plain; charset=UTF-8 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1398134329 news.xs4all.nl 2873 [2001:888:2000:d::a6]:58241 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70481 Hi, ALL, C:\Documents and Settings\Igor.FORDANWORK\My Documents\GitHub\webapp\django\mysql_db_loader>python Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import datetime >>> datetime.datetime.fromtimestamp(1092787200) datetime.datetime(2004, 8, 17, 17, 0) >>> datetime.datetime.fromtimestamp(1092787200/1000.0) datetime.datetime(1970, 1, 13, 7, 33, 7, 200000) Is there a way to know if the timestamp has a microseconds? Thank you.