package ptime

  1. Overview
  2. Docs
POSIX time for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ptime-1.2.0.tbz
sha512=b0c3240dd9e777a5e60b5269eb2e312fc644d29ef55e257d2f2538c03bf62274173ed36e13858c44d2dbee8fe375c9c483e705706e4aa5b3b5c4609ca6324a5c

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: 11 Sep 2024

README

Ptime — POSIX time for OCaml

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.5"
  4. aws-s3
  5. builder
  6. builder-web
  7. ca-certs
  8. calculon >= "0.8"
  9. caldav
  10. canary
  11. capnp-rpc-net
  12. caqti
  13. carbon
  14. certify
  15. chamelon
  16. clz
  17. cohttp-eio
  18. conan
  19. conex-mirage-crypto >= "1.0.0"
  20. conformist >= "0.5.0"
  21. cookie
  22. cookies
  23. crunch
  24. current_github
  25. current_gitlab >= "0.7.1"
  26. daypack-lib
  27. dns >= "4.4.1"
  28. dns-cli
  29. dream >= "1.0.0~alpha3"
  30. dream-pure
  31. dream_middleware_ext
  32. fit >= "1.2.0"
  33. forester >= "2.2.1"
  34. git-kv
  35. git-mirage
  36. git-unix >= "3.6.0" & < "3.16.1"
  37. http-date
  38. icalendar
  39. irmin-mirage
  40. irmin-pack-tools
  41. jekyll-format
  42. jose >= "0.9.0"
  43. junit
  44. jupyter-kernel >= "0.8"
  45. ledes
  46. letsencrypt
  47. letsencrypt-app
  48. letters
  49. little_logger >= "0.2.0"
  50. logs-syslog
  51. lwt-exit
  52. MlFront_Exec
  53. mastodon-archive-viewer
  54. memtrace-mirage
  55. minima-theme
  56. mirage-kv >= "6.0.1"
  57. mirage-kv-mem
  58. mirage-kv-unix
  59. mirage-logs
  60. mirage-ptime
  61. mlgpx
  62. mrmime
  63. nloge
  64. ocaml-protoc-plugin >= "6.1.0"
  65. octez-libs
  66. opentelemetry
  67. opium >= "0.19.0"
  68. otoggl
  69. paf
  70. pgx_value_ptime
  71. plebeia
  72. ppx_minidebug
  73. prettym
  74. prom
  75. proton
  76. rdf >= "0.12.0"
  77. riot
  78. river
  79. rss
  80. SZXX >= "4.1.0"
  81. sitemap
  82. slacko >= "0.15.0"
  83. statocaml
  84. stk >= "0.2.0"
  85. stog >= "0.17.0"
  86. syndic >= "1.5"
  87. syslog-message
  88. syslog-rfc5424
  89. tar-mirage
  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.12.8" & < "0.16.0" | >= "2.0.3"
  101. tls-async
  102. tls-eio >= "0.17.5"
  103. tls-lwt >= "0.17.5"
  104. tls-miou-unix
  105. tls-mirage
  106. webmachine >= "0.6.0"
  107. x509
  108. xapi-stdext-date

Conflicts

None