Ptime — POSIX time for OCaml
Ptime has platform independent POSIX time support in pure OCaml. It provides a type to represent a well-defined range of POSIX timestamps with picosecond precision, conversion with date-time values, conversion with RFC 3339 timestamps and pretty printing to a human-readable, locale-independent representation.
The additional Ptime_clock library provides access to a system POSIX clock and to the system's current time zone offset.
Ptime is not a calendar library.
Home page: http://erratique.ch/software/ptime
Ptime can be installed with
opam install ptime
If you don't use
opam consult the
opam file for build instructions.
The documentation and API reference is generated from the source interfaces. It can be consulted online or via
odig doc ptime.
If you installed Ptime with
opam sample programs are located in the directory
opam config var ptime:doc.