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

Conflicts (1)

  1. js_of_ocaml < "3.3.0"