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 (93)

  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. certify
  14. clz
  15. cohttp-eio
  16. conan
  17. conex-mirage-crypto >= "1.0.0"
  18. conformist >= "0.5.0"
  19. cookie
  20. cookies
  21. crunch
  22. current_github
  23. current_gitlab >= "0.7.1"
  24. daypack-lib
  25. dns >= "4.4.1"
  26. dns-cli < "10.1.0"
  27. dream >= "1.0.0~alpha3"
  28. dream-pure
  29. dream_middleware_ext
  30. forester >= "2.2.1" & < "2.4"
  31. git-kv
  32. git-mirage
  33. git-unix >= "3.6.0" & < "3.16.1"
  34. icalendar
  35. irmin-mirage
  36. irmin-pack-tools
  37. jekyll-format
  38. jose >= "0.9.0"
  39. junit
  40. jupyter-kernel >= "0.8"
  41. ledes
  42. letsencrypt
  43. letsencrypt-app
  44. letters
  45. little_logger >= "0.2.0"
  46. logs-syslog
  47. lwt-exit
  48. mastodon-archive-viewer < "0.4.0"
  49. minima-theme
  50. mirage-kv-mem < "4.0.0"
  51. mirage-kv-unix
  52. mirage-logs
  53. mlgpx
  54. mrmime
  55. nloge
  56. ocaml-protoc-plugin >= "6.1.0"
  57. opentelemetry
  58. opium >= "0.19.0"
  59. paf
  60. pgx_value_ptime
  61. plebeia < "2.0.0"
  62. ppx_minidebug
  63. prettym
  64. prom
  65. proton
  66. rdf >= "0.12.0" & < "1.0.0"
  67. river
  68. rss
  69. sitemap
  70. slacko >= "0.15.0"
  71. stog >= "0.17.0" & < "1.0.0"
  72. syndic >= "1.5"
  73. syslog-message
  74. syslog-rfc5424
  75. tar-mirage
  76. telltime
  77. tezos-base < "16.0"
  78. tezos-stdlib-unix < "16.0"
  79. timedesc
  80. timere < "0.4.0"
  81. timere-parse < "0.0.5"
  82. timmy
  83. timmy-jsoo >= "1.1.5"
  84. timmy-unix >= "1.1.5"
  85. tiny_httpd >= "0.9"
  86. tls >= "0.12.8" & < "0.16.0"
  87. tls-async
  88. tls-lwt >= "0.17.5"
  89. tls-miou-unix
  90. tls-mirage
  91. webmachine >= "0.6.0"
  92. x509
  93. xapi-stdext-date

Conflicts (1)

  1. js_of_ocaml < "3.3.0"