Message88659
>>> 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'
>>> |
|
Date |
User |
Action |
Args |
2009-06-01 17:38:21 | jonathan.cervidae | set | recipients:
+ jonathan.cervidae |
2009-06-01 17:38:21 | jonathan.cervidae | set | messageid: <1243877901.36.0.141304844828.issue6165@psf.upfronthosting.co.za> |
2009-06-01 17:38:19 | jonathan.cervidae | link | issue6165 messages |
2009-06-01 17:38:19 | jonathan.cervidae | create | |
|