⚠️ Warning: This is a draft ⚠️

This means it might contain formatting issues, incorrect code, conceptual problems, or other severe issues.

If you want to help to improve and eventually enable this page, please fork RosettaGit's repository and open a merge request on GitHub.

The OCaml Calendar Library is a library for handling dates and times in OCaml programs.

Homepage: http://calendar.forge.ocamlcore.org/

Project page: http://forge.ocamlcore.org/projects/calendar/

Opam package: http://opam.ocaml.org/packages/calendar/calendar.2.03.2/

How to use

When this library is installed, one can run a script in interpreted mode with this command line:

ocaml unix.cma str.cma -I +calendar calendarLib.cma script.ml

And to compile to native code:

ocamlopt unix.cmxa str.cmxa -I +calendar calendarLib.cmxa prog.ml -o prog

Or using findlib:

ocamlfind opt -package calendar -linkpkg prog.ml -o prog

To use it without installing it, one can open the source archive in /tmp for example, and then after compiling, just replace +calendar by /tmp/calendar-2.03.1/target/ in the previous commands.