This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hdiogenes
Recipients docs@python, hdiogenes
Date 2011-01-18.19:26:13
SpamBayes Score 8.950576e-08
Marked as misclassified No
Message-id <1295378779.48.0.643087757109.issue10938@psf.upfronthosting.co.za>
In-reply-to
Content
On some systems, datetime.strftime() accepts a %s format string that returns epoch / UNIX timestamp, but this behavior is not documented at http://docs.python.org/library/datetime.html

Python 2.7 (r27:82508, Jul  3 2010, 21:12:11) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> datetime.datetime.now().strftime('%s')
'1295376929'
History
Date User Action Args
2011-01-18 19:26:19hdiogenessetrecipients: + hdiogenes, docs@python
2011-01-18 19:26:19hdiogenessetmessageid: <1295378779.48.0.643087757109.issue10938@psf.upfronthosting.co.za>
2011-01-18 19:26:13hdiogeneslinkissue10938 messages
2011-01-18 19:26:13hdiogenescreate