package ptime

  1. Overview
  2. Docs
POSIX time for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

ptime-0.8.6.tbz
sha512=dbb5a1caae995381672ebe95b6824d62d6092e099d0f40099bab049f2f87516fd3657d59694739423e1c0948efd43e50fa06664975593deffe86ba16f6f9fbb9

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. Ptime_clock's optional JavaScript support depends on js_of_ocaml. Ptime and its libraries are distributed under the ISC license.

Home page: http://erratique.ch/software/ptime

Tags

time posix system org:erratique

Published: 29 Nov 2021

README

Ptime — POSIX time for OCaml

v0.8.6

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. Ptime_clock's optional JavaScript support depends on js_of_ocaml. 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
opam install js_of_ocaml ptime  # ptime with jsoo support

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.03.0"

Dev Dependencies

None

Used by (98)

  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 < "0.4.0"
  53. minima-theme
  54. mirage-fs-unix >= "1.3.0"
  55. mirage-kv-mem
  56. mirage-kv-unix
  57. mirage-logs >= "0.3.0"
  58. mrmime
  59. nloge
  60. ocaml-protoc-plugin >= "6.1.0"
  61. opentelemetry
  62. opium >= "0.19.0"
  63. paf
  64. pgx_value_ptime
  65. plebeia < "2.0.0"
  66. ppx_minidebug
  67. prettym
  68. prom
  69. rdf >= "0.12.0" & < "1.0.0"
  70. river >= "0.2"
  71. rss
  72. SZXX >= "4.1.0"
  73. scaml
  74. sitemap
  75. slacko >= "0.15.0"
  76. stog >= "0.17.0" & < "1.0.0"
  77. syndic >= "1.5"
  78. syslog-message
  79. syslog-rfc5424
  80. tar-mirage >= "1.1.0"
  81. telltime
  82. tezos-base < "13.0"
  83. tezos-stdlib-unix < "13.0"
  84. timedesc
  85. timere < "0.4.0"
  86. timere-parse < "0.0.5"
  87. timmy
  88. timmy-jsoo >= "1.1.5"
  89. timmy-unix >= "1.1.5"
  90. tiny_httpd >= "0.9"
  91. tls = "0.8.0" | >= "0.11.0" & < "0.16.0"
  92. tls-async
  93. tls-lwt >= "0.17.4"
  94. tls-miou-unix
  95. tls-mirage
  96. webmachine >= "0.6.0"
  97. x509 >= "0.6.0"
  98. xapi-stdext-date

Conflicts (1)

  1. js_of_ocaml <= "3.3.0"
OCaml

Innovation. Community. Security.