package ptime

  1. Overview
  2. Docs
POSIX time for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

ptime-1.1.0.tbz
sha512=309b8383f61b58840e58a82802ec8fbc61b7cc95a4590d38ad427e484cbaaf66f03fa8e6484b5b6855468a87e745aed103bf6f1041ec05062230a9fa5fb86cc6

Description

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 or JavaScript runtime system. Ptime and its libraries are distributed under the ISC license.

Home page: http://erratique.ch/software/ptime

Tags

time posix system org:erratique

Published: 05 Dec 2022

README

Ptime — POSIX time for OCaml

v1.1.0

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 or JavaScript runtime system. 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

If you don't use opam consult the opam file for build instructions.

Documentation

The documentation can be consulted online or via odig doc mtime.

Questions are welcome but better asked on the OCaml forum than on the issue tracker.

Sample programs

See test/min_clock.ml.

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

Dependencies (4)

  1. topkg build & >= "1.0.3"
  2. ocamlbuild build & != "0.9.0"
  3. ocamlfind build
  4. ocaml >= "4.08.0"

Dev Dependencies

None

Used by (100)

  1. albatross
  2. asn1-combinators >= "0.2.0" & < "0.2.2" | >= "0.2.6"
  3. aws-s3 >= "4.0.0"
  4. builder
  5. builder-web
  6. ca-certs
  7. calculon >= "0.8"
  8. caldav
  9. canary
  10. capnp-rpc-lwt >= "0.3.1" & < "0.5.0"
  11. capnp-rpc-net
  12. caqti
  13. carbon
  14. certify >= "0.2"
  15. chamelon
  16. clz
  17. cohttp-eio >= "6.0.0~alpha1"
  18. conan
  19. conduit-mirage < "2.1.0"
  20. conformist >= "0.5.0"
  21. cookie
  22. cookies
  23. crunch >= "3.0.0"
  24. current_github >= "0.5"
  25. current_gitlab >= "0.6.6"
  26. daypack-lib
  27. dns >= "4.0.0"
  28. dns-cli
  29. dream >= "1.0.0~alpha3"
  30. dream-pure
  31. easy_xlsx
  32. ezirmin
  33. fit >= "1.2.0"
  34. forester >= "2.2.1"
  35. functoria >= "2.2.2" & < "4.0.0~beta1"
  36. git-kv
  37. git-mirage >= "3.7.0"
  38. git-unix >= "3.3.0"
  39. http-date
  40. icalendar
  41. irmin-mirage
  42. irmin-pack-tools
  43. irmin-tezos-utils
  44. jekyll-format
  45. jose >= "0.9.0"
  46. junit
  47. jupyter-kernel >= "0.8"
  48. letsencrypt
  49. letsencrypt-app
  50. letters
  51. little_logger >= "0.2.0"
  52. logs-syslog
  53. lwt-exit
  54. mastodon-archive-viewer
  55. memtrace-mirage
  56. minima-theme
  57. mirage-fs-unix >= "1.3.0"
  58. mirage-kv >= "6.0.0"
  59. mirage-kv-mem
  60. mirage-kv-unix
  61. mirage-logs >= "0.3.0"
  62. mrmime
  63. nloge
  64. octez-libs
  65. opentelemetry
  66. opium >= "0.19.0"
  67. otoggl
  68. paf
  69. pgx_value_ptime
  70. plebeia
  71. ppx_minidebug
  72. prettym
  73. prom
  74. rdf >= "0.12.0"
  75. riot
  76. river >= "0.2"
  77. rss
  78. SZXX >= "4.1.0"
  79. scaml
  80. slacko >= "0.15.0"
  81. stog >= "0.17.0"
  82. syndic >= "1.5"
  83. syslog-message
  84. syslog-rfc5424
  85. tar-mirage >= "1.1.0"
  86. telltime
  87. tezos-base
  88. tezos-stdlib-unix
  89. timedesc
  90. timere < "0.4.0"
  91. timere-parse < "0.0.5"
  92. timmy
  93. tiny_httpd >= "0.9"
  94. tls = "0.8.0" | >= "0.11.0" & < "0.16.0"
  95. tls-async
  96. tls-eio >= "0.17.2"
  97. tls-mirage
  98. webmachine >= "0.6.0"
  99. x509 >= "0.6.0"
  100. xapi-stdext-date

Conflicts

None