Page
Library
Module
Module type
Parameter
Class
Class type
Source
This library handles dates (YYYY-MM-DD
) and periods (in days, months and years). It provides operators on dates and periods. The addition of dates and periods containing months or years is a tricky case that may require roundings. We have taken special care to define those rounding operators and expose different rounding modes for users.
This library is a work in progress. You can find the library's description in lib/dates.mli
. There is also a Python implementation (which corresponds to a port of the OCaml implementation).
We have a paper under submission that will detail the full semantics of this library.
Just run opam install dates_calc
or opam install .
if you've cloned the git repository.
The documentation can be built with dune build @doc
, and is then available in doc/odoc.html
.