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

Conflicts

None