11 lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
12 "ptime is not available for OCaml ${ocaml.version}"
17 pname = "ocaml${ocaml.version}-ptime";
20 url = "https://erratique.ch/software/ptime/releases/ptime-${finalAttrs.version}.tbz";
21 hash = "sha256-lhZ0f99JDsNugCTKsn7gHjoK9XfYojImY4+kA03nOrA=";
37 inherit (topkg) buildPhase installPhase;
40 description = "POSIX time for OCaml";
41 homepage = "https://erratique.ch/software/ptime";
42 license = lib.licenses.isc;
44 Ptime has platform independent POSIX time support in pure OCaml.
45 It provides a type to represent a well-defined range of POSIX timestamps
46 with picosecond precision, conversion with date-time values, conversion
47 with RFC 3339 timestamps and pretty printing to a human-readable,
48 locale-independent representation.
50 The additional Ptime_clock library provides access to a system POSIX clock
51 and to the system's current time zone offset.
53 Ptime is not a calendar library.
55 maintainers = with lib.maintainers; [ sternenseemann ];