aboutsummaryrefslogtreecommitdiff
path: root/tests/core/time
Commit message (Collapse)AuthorAgeFilesLines
* oops, copy-paste-bugColin Davidson2024-11-201-1/+1
|
* fix parsing issue around utc/localtime splitColin Davidson2024-11-201-0/+10
|
* add new test, better fail-check, and non-transitioning tz fixColin Davidson2024-11-051-0/+14
|
* tweaks per laytan suggestionsColin Davidson2024-10-101-8/+8
|
* Initial cut of timezonesColin Davidson2024-10-091-0/+212
|
* fix vet warningsSimon Cruanes2024-09-221-2/+2
|
* Apply suggestions from code reviewSimon Cruanes2024-09-211-2/+3
| | | Co-authored-by: flysand7 <yyakut.ac@gmail.com>
* add tests for time.time_to_rfc3339Simon Cruanes2024-09-211-1/+30
|
* Add `time.time_to_datetime`Feoramund2024-09-031-0/+25
|
* Add `time.to_string*` formatters.Jeroen van Rijn2024-07-251-0/+37
|
* Port `testing\core\time`Jeroen van Rijn2024-06-021-78/+92
|
* Add dedicated ISO 8601 parser.Jeroen van Rijn2024-05-241-4/+67
|
* Allow lowercase z TZ indicator.Jeroen van Rijn2024-05-241-0/+2
|
* Allow space (in addition to T and t) as RFC 3339 date/time separator.Vitalii Kravchenko2024-05-241-0/+2
|
* Ensmallen Date struct.Jeroen van Rijn2024-03-201-2/+2
|
* Ensmallen Time struct.Jeroen van Rijn2024-03-201-2/+2
|
* Change Ordinal from int to i64Jeroen van Rijn2024-03-201-3/+4
|
* Add WiP datetime package and tests.Jeroen van Rijn2024-03-181-0/+177
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.