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 jonathan.cervidae
Recipients jonathan.cervidae
Date 2009-06-01.17:38:19
SpamBayes Score 0.0024615624
Marked as misclassified No
Message-id <1243877901.36.0.141304844828.issue6165@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import time
>>> time.strftime("%FT%T%z")
'2009-06-01T18:35:42+0100'
>>> # Expect to see +0100
>>> time.strftime("%FT%T%z",time.localtime())
'2009-06-01T18:35:42+0000'
>>> time.strftime("%FT%T%Z",time.localtime())
'2009-06-01T18:35:42BST'
>>> made_up_time = list(time.localtime())
>>> made_up_time
[2009, 6, 1, 18, 35, 48, 0, 152, 1]
>>> made_up_time[1] = 2
>>> made_up_time=tuple(made_up_time)
>>> time.strftime("%FT%T%z",made_up_time)
'2009-02-01T18:35:48+0000'
>>> # Expect to see GMT or UTC, whatever strftime wants to call it.
>>> time.strftime("%FT%T%Z",made_up_time)
'2009-02-01T18:35:48BST'
>>>
History
Date User Action Args
2009-06-01 17:38:21jonathan.cervidaesetrecipients: + jonathan.cervidae
2009-06-01 17:38:21jonathan.cervidaesetmessageid: <1243877901.36.0.141304844828.issue6165@psf.upfronthosting.co.za>
2009-06-01 17:38:19jonathan.cervidaelinkissue6165 messages
2009-06-01 17:38:19jonathan.cervidaecreate