3 ms·
I tested this with the library from TFA, and it fails too :( >>> from whenever import UTCDateTime >>> (UTCDateTime(2024, 1, 1) - UTCDateTime(1974, 1, 1
by zokier 3y ago
I tested this with the library from TFA, and it fails too :(
>>> from whenever import UTCDateTime
>>> (UTCDateTime(2024, 1, 1) - UTCDateTime(1974, 1, 1)).total_seconds() % 86400
0.0
- DandyDev 3y agoWhat does TFA mean here? Trifluoroacetic Acid?
- ariebovenberg 3y agoAuthor here— This is a conscious decision, I'll explicitly address this in the FAQ soon. As I commented elsewhere, this is completely in line with industry standards (iCal, Unix time) and other modern libraries. I don't (yet) see any reason to deviate.