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. catala-lsp >= "1.0.0"
  15. certify
  16. chamelon
  17. clz
  18. cohttp-eio
  19. conan
  20. conex-mirage-crypto >= "1.0.0"
  21. conformist >= "0.5.0"
  22. cookie
  23. cookies
  24. crunch
  25. current_github
  26. current_gitlab >= "0.7.1"
  27. DkZero_Base
  28. daypack-lib
  29. dns >= "4.4.1"
  30. dns-cli
  31. dream >= "1.0.0~alpha3"
  32. dream-pure
  33. dream_middleware_ext
  34. fit >= "1.2.0"
  35. fluxt >= "0.0.1~beta2"
  36. forester >= "2.2.1"
  37. git-kv
  38. git-mirage
  39. git-unix >= "3.6.0" & < "3.16.1"
  40. http-date < "0.2"
  41. icalendar
  42. irmin-mirage
  43. irmin-pack-tools
  44. jekyll-format
  45. jose >= "0.9.0"
  46. jsonfeed
  47. jsonschema-validation
  48. junit
  49. jupyter-kernel >= "0.8"
  50. ledes
  51. letsencrypt
  52. letsencrypt-app
  53. letters
  54. little_logger >= "0.2.0"
  55. logs-syslog
  56. lwt-exit
  57. MlFront_Exec
  58. mastodon-archive-viewer
  59. memtrace-mirage
  60. minima-theme
  61. mirage-kv >= "6.0.1"
  62. mirage-kv-mem
  63. mirage-kv-unix
  64. mirage-logs
  65. mirage-ptime
  66. mlgpx
  67. mrmime
  68. nloge
  69. ocaml-protoc-plugin >= "6.1.0"
  70. opentelemetry
  71. opium >= "0.19.0"
  72. otoggl
  73. paf
  74. pgx_value_ptime
  75. plebeia
  76. polymarket
  77. ppx_minidebug
  78. prettym
  79. prom
  80. proton
  81. raga
  82. rdf
  83. riot
  84. river
  85. rss
  86. SZXX >= "4.1.0"
  87. sitemap
  88. slacko >= "0.15.0"
  89. statocaml
  90. stk >= "0.2.0"
  91. stog >= "0.17.0"
  92. syndic >= "1.5"
  93. syslog-message
  94. syslog-rfc5424 < "0.2"
  95. tar-mirage
  96. telltime
  97. timedesc
  98. timere < "0.4.0"
  99. timere-parse < "0.0.5"
  100. timmy
  101. timmy-jsoo >= "1.1.5"
  102. timmy-unix >= "1.1.5"
  103. tiny_httpd >= "0.9"
  104. tls >= "0.12.8" & < "0.16.0" | >= "2.0.3"
  105. tls-async
  106. tls-eio >= "0.17.5"
  107. tls-lwt >= "0.17.5"
  108. tls-miou-unix
  109. tls-mirage
  110. webmachine >= "0.6.0"
  111. x509
  112. xapi-stdext-date

Conflicts

None