package ptime

  1. Overview
  2. Docs
POSIX time for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ptime-0.8.5.tbz
sha256=47c82848d26da735495c2fb9c2ed4fc45971d5a9ee97bd6d735faae0fb29b8bb
md5=4d48055d623ecf2db792439b3e96a520

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 depends on the result compatibility package. 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.

Tags

time posix system org:erratique

Published: 04 May 2019

README

Ptime — POSIX time for OCaml

v0.8.5

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 depends on the result compatibility package. 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 (5)

  1. result
  2. topkg build
  3. ocamlbuild build & != "0.9.0"
  4. ocamlfind build
  5. ocaml >= "4.01.0" & < "5.0"

Dev Dependencies

None

Used by (95)

  1. albatross < "2.4.1"
  2. asn1-combinators < "0.3.1"
  3. aws-s3
  4. builder
  5. builder-web
  6. ca-certs
  7. calculon >= "0.8"
  8. caldav
  9. canary
  10. capnp-rpc-net
  11. caqti
  12. carbon
  13. catala-lsp >= "1.0.0"
  14. certify
  15. clz
  16. cohttp-eio
  17. conan
  18. conex-mirage-crypto >= "1.0.0"
  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 < "10.1.0"
  28. dream >= "1.0.0~alpha3"
  29. dream-pure
  30. dream_middleware_ext
  31. forester >= "2.2.1" & < "2.4"
  32. git-kv
  33. git-mirage
  34. git-unix >= "3.6.0" & < "3.16.1"
  35. icalendar
  36. irmin-mirage
  37. irmin-pack-tools
  38. jekyll-format
  39. jose >= "0.9.0"
  40. junit
  41. jupyter-kernel >= "0.8"
  42. ledes
  43. letsencrypt
  44. letsencrypt-app
  45. letters
  46. little_logger >= "0.2.0"
  47. logs-syslog
  48. lwt-exit
  49. mastodon-archive-viewer < "0.4.0"
  50. minima-theme
  51. mirage-kv-mem < "4.0.0"
  52. mirage-kv-unix
  53. mirage-logs
  54. mlgpx
  55. mrmime
  56. nloge
  57. ocaml-protoc-plugin >= "6.1.0"
  58. opentelemetry
  59. opium >= "0.19.0"
  60. paf
  61. pgx_value_ptime
  62. plebeia < "2.0.0"
  63. ppx_minidebug
  64. prettym
  65. prom
  66. proton
  67. raga
  68. rdf >= "0.12.0" & < "1.0.0"
  69. river
  70. rss
  71. sitemap
  72. slacko >= "0.15.0"
  73. stog >= "0.17.0" & < "1.0.0"
  74. syndic >= "1.5"
  75. syslog-message
  76. syslog-rfc5424
  77. tar-mirage
  78. telltime
  79. tezos-base < "16.0"
  80. tezos-stdlib-unix < "16.0"
  81. timedesc
  82. timere < "0.4.0"
  83. timere-parse < "0.0.5"
  84. timmy
  85. timmy-jsoo >= "1.1.5"
  86. timmy-unix >= "1.1.5"
  87. tiny_httpd >= "0.9"
  88. tls >= "0.12.8" & < "0.16.0"
  89. tls-async
  90. tls-lwt >= "0.17.5"
  91. tls-miou-unix
  92. tls-mirage
  93. webmachine >= "0.6.0"
  94. x509
  95. xapi-stdext-date

Conflicts (1)

  1. js_of_ocaml < "3.3.0"