Message270575
Alexander: that is true, because they are *separate* conversion flags.
However even the POSIX standard strptime has some leniency: '%m` and `%d` accept the numbers *without* leading zeroes. This actually also means that one cannot use `%Y%m%d` to detect an invalid ISO timestamp:
>>> datetime.datetime.strptime('111122', '%Y%m%d')
datetime.datetime(1111, 2, 2, 0, 0)
The `arrow` library depends on the supposed "strict" behaviour of strptime that has never been guaranteed, which often results in very buggy behaviour under some conditions.
----
(Also, it must be noted that GNU date program doesn't use these formats to *parse* dates, and POSIX strptime in *C* library outright ignores any timezone information) |
|
Date |
User |
Action |
Args |
2016-07-16 17:26:26 | ztane | set | recipients:
+ ztane, gvanrossum, tim.peters, barry, jcea, roysmith, belopolsky, nagle, vstinner, jwilk, mcepl, eric.araujo, Arfrever, r.david.murray, davydov, cvrebert, karlcow, SilentGhost, perey, flying sheep, mihaic, aymeric.augustin, Roman.Evstifeev, berker.peksag, martin.panter, piotr.dobrogost, kirpit, Anders.Hovmöller, jstasiak, Eric.Hanchrow, deronnax, pbryan, shanmbic |
2016-07-16 17:26:26 | ztane | set | messageid: <1468689986.08.0.967481929415.issue24954@psf.upfronthosting.co.za> |
2016-07-16 17:26:26 | ztane | link | issue24954 messages |
2016-07-16 17:26:25 | ztane | create | |
|