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

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. mlgpx
  60. mrmime
  61. nloge
  62. ocaml-protoc-plugin >= "6.1.0"
  63. octez-libs
  64. opentelemetry
  65. opium >= "0.19.0"
  66. otoggl
  67. paf
  68. pgx_value_ptime
  69. plebeia
  70. ppx_minidebug
  71. prettym
  72. prom
  73. rdf >= "0.12.0"
  74. riot
  75. river
  76. rss
  77. SZXX >= "4.1.0"
  78. sitemap
  79. slacko >= "0.15.0"
  80. statocaml
  81. stk >= "0.2.0"
  82. stog >= "0.17.0"
  83. syndic >= "1.5"
  84. syslog-message
  85. syslog-rfc5424
  86. tar-mirage
  87. telltime
  88. tezos-base
  89. tezos-stdlib-unix
  90. timedesc
  91. timere < "0.4.0"
  92. timere-parse < "0.0.5"
  93. timmy
  94. timmy-jsoo >= "1.1.5"
  95. timmy-unix >= "1.1.5"
  96. tiny_httpd >= "0.9"
  97. tls >= "0.12.8" & < "0.16.0"
  98. tls-async
  99. tls-eio >= "0.17.5"
  100. tls-lwt >= "0.17.5"
  101. tls-miou-unix
  102. tls-mirage
  103. webmachine >= "0.6.0"
  104. x509
  105. xapi-stdext-date

Conflicts

None

OCaml

Innovation. Community. Security.