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

Added to opam-repository:

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

Conflicts

None