aboutsummaryrefslogtreecommitdiff
path: root/core/time/datetime
Commit message (Collapse)AuthorAgeFilesLines
* [datetime]: Remove the definition of EPOCHflysand72025-03-062-12/+9
|
* tweaks per laytan suggestionsColin Davidson2024-10-101-2/+2
|
* Initial cut of timezonesColin Davidson2024-10-092-4/+47
|
* Moved all packages in core, base, vendor, tests and examples to use new #+ ↵Karl Zylinski2024-09-141-1/+1
| | | | file tag syntax.
* [time/datetime]: Document package datetimeflysand72024-07-204-10/+273
|
* Fix #3873Jeroen van Rijn2024-07-051-1/+1
|
* Fix #3460Feoramund2024-06-101-2/+2
|
* Remove using from validate_datetimeChris2024-04-091-4/+4
|
* More better validation.Jeroen van Rijn2024-03-202-17/+19
|
* Ensmallen Date struct.Jeroen van Rijn2024-03-202-9/+9
|
* Ensmallen Time struct.Jeroen van Rijn2024-03-202-14/+13
|
* Change Ordinal from int to i64Jeroen van Rijn2024-03-204-54/+59
|
* Add WiP datetime package and tests.Jeroen van Rijn2024-03-184-0/+510
A new package `core:time/datetime` has been added which can represent moments much further in the past and future than `core:time`. It is based on *the* reference work on the subject, Calendrical Calculations Ultimate Edition, Reingold & Dershowitz. More procedures will be added to it in the future, to for example calculate the 3rd Thursday in March to figure out holidays. The package has been tested for more than a year and can handle dates 25 quadrillion years into the past and future with 64-bit day ordinals, or 5 million with 32-bit ones. This also fixes a longstanding bug where converting between YYYY-MM:DD hh:mm:ss and `time.Time` and back could result in a mismatch. RFC 3339 timestamps can now also be parsed using the `core:time` package.