Message233257
> For any valid string, strptime followed by strftime should return
> the same string.
Not necessarily. String to datetime mapping implemented by strptime can be many to one. For example,
>>> datetime.strptime("2014 366", "%Y %j") == datetime.strptime("2015 1", "%Y %j")
True
in this case, strptime-strftime may not round-trip.
>>> datetime.strptime("2014 366", "%Y %j").strftime("%Y %j")
'2015 001' |
|
Date |
User |
Action |
Args |
2014-12-31 17:40:25 | belopolsky | set | recipients:
+ belopolsky, lemburg, serhiy.storchaka, jamercee, Saimadhav.Heblikar, torm |
2014-12-31 17:40:25 | belopolsky | set | messageid: <1420047625.05.0.108847973391.issue23136@psf.upfronthosting.co.za> |
2014-12-31 17:40:25 | belopolsky | link | issue23136 messages |
2014-12-31 17:40:24 | belopolsky | create | |
|