package ptime

  1. Overview
  2. Docs
POSIX time for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

ptime-0.8.1.tbz
sha256=40b38e4e7f4b4a5baafa47355c852e2c3686a7b3a2c967d937a5caa7e470f8e4
md5=90df07ad48679b59a2c344bc4c71708c

README.md.html

Ptime — POSIX time for OCaml

v0.8.1

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 depends on the result compatibility package. 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
Contact: Daniel Bünzli <daniel.buenzl i@erratique.ch>

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 automatically generated by ocamldoc from the interfaces. It can be consulted online.

Sample programs

If you installed Ptime with opam sample programs are located in the directory opam config var ptime:doc.

OCaml

Innovation. Community. Security.