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

Added to opam-repository:

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

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

Conflicts (1)

  1. js_of_ocaml < "3.3.0"