by the__alchemist · 1w ago · 0 comments
What datetime is your annual birthday celebration? When's Christmas this year? What time is your Monday alarm clock set for? Wen's the daily standup?
There are so many, and sometimes Arrow/Moment's abstraction is OK. Other times it's awkward as it overconstrains. Sometimes it has surprising behavior.
Or, ask yourself why Jiff and Chrono, and python datetime etc have separate date, time, and datetime types.
Datetimes are useful, and I use them more than individual dates and times. The latter 2 are still useful, and datetime is a sloppy or buggy fit.
My best guess of your (and the arrow and moment creator's mentality here): They have been hit by bugs of the kind you're saying, involving timezones, or things that should be datetimes + timezone, but were using native datetimes, or dates etc. The response was to use datetimes for everything, ignoring other cases. Does that sound accurate?
Doesn't that belong to a scheduler library?