ptime
v0.8.6
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.
Ptime has no dependency. Ptime_clock depends on your system
library. Ptime_clock's optional JavaScript support depends on
js_of_ocaml. Ptime and its libraries are distributed under the
ISC license.
Home page: http://erratique.ch/software/ptime
Installation
Ptime can be installed with opam
:
opam install ptime
opam install js_of_ocaml ptime # ptime with jsoo support
If you don't use opam
consult the opam
file for build
instructions.
Documentation
The documentation and API reference is generated from the source
interfaces. It can be consulted online or via odig doc ptime
.
Sample programs
If you installed Ptime with opam
sample programs are located in
the directory opam config var ptime:doc
.
sha512=dbb5a1caae995381672ebe95b6824d62d6092e099d0f40099bab049f2f87516fd3657d59694739423e1c0948efd43e50fa06664975593deffe86ba16f6f9fbb9
>= "0.2.0" & < "0.2.2" | >= "0.2.6"
>= "4.0.0"
>= "0.8"
>= "0.3.1" & < "0.5.0"
>= "0.2"
< "2.1.0"
>= "0.5.0"
>= "3.0.0"
>= "0.5"
>= "4.0.0"
>= "1.0.0~alpha3"
>= "2.2.2" & < "4.0.0~beta1"
>= "3.7.0"
>= "3.3.0"
>= "0.8"
>= "0.2.0"
>= "1.3.0"
>= "0.3.0"
>= "0.19.0"
< "2.0.0"
>= "0.12.0"
>= "0.2"
>= "0.15.0"
>= "0.17.0"
>= "1.5"
>= "1.1.0"
< "13.0"
< "13.0"
< "0.4.0"
< "0.0.5"
>= "0.9"
= "0.8.0" | >= "0.11.0"
>= "0.6.0"
>= "0.6.0"