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

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

Conflicts

None

OCaml

Innovation. Community. Security.