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

  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. ledes
  54. letsencrypt
  55. letsencrypt-app
  56. letters
  57. little_logger >= "0.2.0"
  58. logs-syslog
  59. lwt-exit
  60. mastodon-archive-viewer < "0.4.0"
  61. minima-theme
  62. mirage-kv-mem < "4.0.0"
  63. mirage-kv-unix
  64. mirage-logs
  65. mlgpx
  66. mrmime
  67. nloge
  68. ocaml-protoc-plugin >= "6.1.0"
  69. opentelemetry
  70. opium >= "0.19.0"
  71. paf
  72. pgx_value_ptime
  73. plebeia < "2.0.0"
  74. ppx_minidebug
  75. prettym
  76. prom
  77. proton
  78. raga < "0.1.1"
  79. rdf < "1.0.0"
  80. river
  81. rss
  82. sitemap
  83. slacko >= "0.15.0"
  84. stog >= "0.17.0" & < "1.0.0"
  85. syndic >= "1.5"
  86. syslog-message
  87. syslog-rfc5424 < "0.2"
  88. tar-mirage
  89. telltime
  90. timedesc
  91. timere < "0.4.0"
  92. timere-parse < "0.0.5"
  93. timmy
  94. timmy-jsoo >= "1.1.5"
  95. timmy-unix >= "1.1.5"
  96. tiny_httpd >= "0.9"
  97. tls >= "0.12.8" & < "0.16.0"
  98. tls-async
  99. tls-lwt >= "0.17.5"
  100. tls-miou-unix
  101. tls-mirage
  102. webmachine >= "0.6.0"
  103. x509
  104. xapi-stdext-date

Conflicts (1)

  1. js_of_ocaml < "3.3.0"