package ptime

  1. Overview
  2. Docs
POSIX time for OCaml

Install

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

Conflicts

None

OCaml

Innovation. Community. Security.