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

Conflicts

None