Datetime library #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A datetime library should be modelled after Jiff or Temporal.
Fast algorithm for date conversion: https://www.benjoffe.com/fast-date-64
Optimised leap year check:
https://hueffner.de/falk/blog/a-leap-year-check-in-three-instructions.html
I'm not sure if this is worth doing, simply because of how complicated it is. I want the code in the standard library to be mostly readable. But I'm leaving it here as an idea if I end up implementing it for performance anyway.