Message308505
Regarding Matthieu’s RFC 3339 parser, Victor wanted to use the round-half-to-even rule to get a whole number of microseconds. But considering the “time” class cannot represent 24:00, how do you round up in the extreme case past 23:59?
time.fromisoformat("23:59:59.9999995")
Perhaps it is better to always truncate to zero, only support 6 digits (rejecting fractions of a microsecond), or add Anders’s truncate_microseconds=True option. |
|
Date |
User |
Action |
Args |
2017-12-18 01:37:50 | martin.panter | set | recipients:
+ martin.panter, barry, jcea, cben, roysmith, ncoghlan, belopolsky, nagle, vstinner, jwilk, mcepl, eric.araujo, Arfrever, r.david.murray, davydov, cvrebert, karlcow, SilentGhost, Elvis.Pranskevichus, perey, flying sheep, mihaic, aymeric.augustin, Roman.Evstifeev, berker.peksag, piotr.dobrogost, kirpit, Anders.Hovmöller, jstasiak, Eric.Hanchrow, deronnax, pbryan, p-ganssle, sirex, larsonreever |
2017-12-18 01:37:50 | martin.panter | set | messageid: <1513561070.21.0.213398074469.issue15873@psf.upfronthosting.co.za> |
2017-12-18 01:37:50 | martin.panter | link | issue15873 messages |
2017-12-18 01:37:49 | martin.panter | create | |
|