aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2024-03-13 19:04:39 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2024-03-18 16:47:16 +0100
commit72c15d7699507a5984d7fcc6426d1e38517c407f (patch)
treed0ed690ec3cabef05d5fa80f62dd898db5058431 /src/check_expr.cpp
parent009b6f44e379e7644e0f2987663d52186dea5656 (diff)
Add WiP datetime package and tests.
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.
Diffstat (limited to 'src/check_expr.cpp')
0 files changed, 0 insertions, 0 deletions