package ptime

  1. Overview
  2. Docs
POSIX time for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

ptime-1.0.0.tbz
sha512=df2410d9cc25a33083fe968a584b8fb4d68ad5c077f3356da0a20427e6cd8756a5b946b921e5cf8ed4097f2c506e93345d9dca63b113be644d5a7cc0753d1534

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: 16 Feb 2022

README

Ptime — POSIX time for OCaml

v1.0.0

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 and API reference is generated from the source interfaces. It can be consulted online or via odig doc ptime.

Sample programs

If you installed Ptime with opam sample programs are located in the directory opam config 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. albatross
  2. asn1-combinators >= "0.2.0" & < "0.2.2" | >= "0.2.6"
  3. aws-s3 >= "4.0.0"
  4. builder
  5. builder-web
  6. ca-certs
  7. calculon >= "0.8"
  8. caldav
  9. canary
  10. capnp-rpc-lwt >= "0.3.1" & < "0.5.0"
  11. capnp-rpc-net
  12. caqti
  13. carbon
  14. certify >= "0.2"
  15. chamelon
  16. clz
  17. cohttp-eio >= "6.0.0~alpha1"
  18. conan
  19. conduit-mirage < "2.1.0"
  20. conformist >= "0.5.0"
  21. cookie
  22. cookies
  23. crunch >= "3.0.0"
  24. current_github >= "0.5"
  25. current_gitlab >= "0.6.6"
  26. daypack-lib
  27. dns >= "4.0.0"
  28. dns-cli
  29. dream >= "1.0.0~alpha3"
  30. dream-pure
  31. easy_xlsx
  32. ezirmin
  33. forester >= "2.2.1" & < "2.4"
  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. icalendar
  39. irmin-mirage
  40. irmin-pack-tools
  41. irmin-tezos-utils
  42. jekyll-format
  43. jose >= "0.9.0"
  44. junit
  45. jupyter-kernel >= "0.8"
  46. letsencrypt
  47. letsencrypt-app
  48. letters
  49. little_logger >= "0.2.0"
  50. logs-syslog
  51. lwt-exit
  52. mastodon-archive-viewer
  53. memtrace-mirage
  54. minima-theme
  55. mirage-fs-unix >= "1.3.0"
  56. mirage-kv >= "6.0.0"
  57. mirage-kv-mem
  58. mirage-kv-unix
  59. mirage-logs >= "0.3.0"
  60. mrmime
  61. nloge
  62. ocaml-protoc-plugin >= "6.1.0"
  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" & < "1.0.0"
  73. river >= "0.2"
  74. rss
  75. SZXX >= "4.1.0"
  76. scaml
  77. sitemap
  78. slacko >= "0.15.0"
  79. stog >= "0.17.0" & < "1.0.0"
  80. syndic >= "1.5"
  81. syslog-message
  82. syslog-rfc5424
  83. tar-mirage >= "1.1.0"
  84. telltime
  85. tezos-base < "17.1"
  86. tezos-stdlib-unix < "17.1"
  87. timedesc
  88. timere < "0.4.0"
  89. timere-parse < "0.0.5"
  90. timmy
  91. timmy-jsoo >= "1.1.5"
  92. timmy-unix >= "1.1.5"
  93. tiny_httpd >= "0.9"
  94. tls = "0.8.0" | >= "0.11.0" & < "0.16.0"
  95. tls-async
  96. tls-eio >= "0.17.2"
  97. tls-lwt >= "0.17.4"
  98. tls-miou-unix
  99. tls-mirage
  100. webmachine >= "0.6.0"
  101. x509 >= "0.6.0"
  102. xapi-stdext-date

Conflicts

None

OCaml

Innovation. Community. Security.