News for hackers. Stuff that matters.
Re:Ten Python datetime pitfalls, and what libraries are (not... by zokier on Sunday February 18, 2024 @01:07PM (#39421397)
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
Re:Ten Python datetime pitfalls, and what libraries are (not... by ariebovenberg on Sunday February 18, 2024 @03:47PM (#39423126)
Author 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.

Re:Ten Python datetime pitfalls, and what libraries are (not... by DandyDev on Sunday February 18, 2024 @02:24PM (#39422192)
What does TFA mean here? Trifluoroacetic Acid?
Re:Ten Python datetime pitfalls, and what libraries are (not... by zokier on Sunday February 18, 2024 @02:50PM (#39422435)
The Fucking/Fine/... Article
Re:Ten Python datetime pitfalls, and what libraries are (not... by falserum on Monday February 19, 2024 @01:31PM (#39433066)
For educationary purposes: TFA=The Fucking Article

(I’m voting for not being afraid of curse words; if they are relevant)