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.2" | >= "0.2.6"
  4. aws-s3
  5. builder
  6. builder-web
  7. ca-certs
  8. calculon >= "0.8"
  9. caldav
  10. canary
  11. capnp-rpc-lwt >= "0.3.1" & < "0.5.0"
  12. capnp-rpc-net
  13. caqti
  14. carbon
  15. certify
  16. chamelon
  17. clz
  18. cohttp-eio >= "6.0.0~alpha1"
  19. conan
  20. conduit-mirage < "2.1.0"
  21. conformist >= "0.5.0"
  22. cookie
  23. cookies
  24. crunch >= "3.0.0"
  25. current_github >= "0.5"
  26. current_gitlab >= "0.6.6"
  27. daypack-lib
  28. dns >= "4.0.0"
  29. dns-cli
  30. dream >= "1.0.0~alpha3"
  31. dream-pure
  32. fit >= "1.2.0"
  33. forester >= "2.2.1"
  34. functoria >= "2.2.2" & < "4.0.0~beta1"
  35. git-kv
  36. git-mirage >= "3.7.0"
  37. git-unix >= "3.3.0" & < "3.16.0"
  38. http-date
  39. icalendar
  40. irmin-mirage
  41. irmin-pack-tools
  42. irmin-tezos-utils
  43. jekyll-format
  44. jose >= "0.9.0"
  45. junit
  46. jupyter-kernel >= "0.8"
  47. letsencrypt
  48. letsencrypt-app
  49. letters
  50. little_logger >= "0.2.0"
  51. logs-syslog
  52. lwt-exit
  53. mastodon-archive-viewer
  54. memtrace-mirage
  55. minima-theme
  56. mirage-fs-unix
  57. mirage-kv >= "6.0.1"
  58. mirage-kv-mem
  59. mirage-kv-unix
  60. mirage-logs >= "0.3.0"
  61. mirage-ptime
  62. mrmime
  63. nloge
  64. ocaml-protoc-plugin >= "6.1.0"
  65. octez-libs
  66. opentelemetry
  67. opium >= "0.19.0"
  68. otoggl
  69. paf
  70. pgx_value_ptime
  71. plebeia
  72. ppx_minidebug
  73. prettym
  74. prom
  75. rdf >= "0.12.0"
  76. riot
  77. river
  78. rss
  79. SZXX >= "4.1.0"
  80. sitemap
  81. slacko >= "0.15.0"
  82. stk >= "0.2.0"
  83. stog >= "0.17.0"
  84. syndic >= "1.5"
  85. syslog-message
  86. syslog-rfc5424
  87. tar-mirage >= "1.1.0"
  88. telltime
  89. tezos-base
  90. tezos-stdlib-unix
  91. timedesc
  92. timere < "0.4.0"
  93. timere-parse < "0.0.5"
  94. timmy
  95. timmy-jsoo >= "1.1.5"
  96. timmy-unix >= "1.1.5"
  97. tiny_httpd >= "0.9"
  98. tls >= "0.11.0" & < "0.16.0"
  99. tls-async
  100. tls-eio >= "0.17.2"
  101. tls-lwt >= "0.17.4"
  102. tls-miou-unix
  103. tls-mirage
  104. webmachine >= "0.6.0"
  105. x509
  106. xapi-stdext-date

Conflicts

None

OCaml

Innovation. Community. Security.