Author mumino
Recipients Daniel.O'Connor, belopolsky, bignose, mumino, r.david.murray, santoso.wijaya
Date 2012-09-20.12:23:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348143831.72.0.596088909091.issue12750@psf.upfronthosting.co.za>
In-reply-to
Content
I made a patch for datetime.strftime('%s'). it takes tzinfo into consideration.


>>> datetime.datetime(1970,1,1).strftime("%s")   
'-7200'

>>> datetime.datetime(1970,1,1, tzinfo=datetime.timezone.utc).strftime("%s")
'0'

datetime.date still behave as naive datetime.datetime
>>> datetime.date(1970,1,1).strftime("%s")
'-7200'
History
Date User Action Args
2012-09-20 12:23:51muminosetrecipients: + mumino, belopolsky, r.david.murray, santoso.wijaya, bignose, Daniel.O'Connor
2012-09-20 12:23:51muminosetmessageid: <1348143831.72.0.596088909091.issue12750@psf.upfronthosting.co.za>
2012-09-20 12:23:51muminolinkissue12750 messages
2012-09-20 12:23:51muminocreate