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

Conflicts

None