package ptime

  1. Overview
  2. Docs
POSIX time for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

ptime-0.8.3.tbz
sha256=84643c415a8b6a4eef087bb6024c95afa932a636f31b3bcffb3135fba6ae51a2
md5=bf84f6bfedce30349cffc9eb52ac7574

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: 06 Feb 2017

README

Ptime — POSIX time for OCaml

v0.8.3

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
Contact: Daniel Bünzli <daniel.buenzl i@erratique.ch>

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 automatically generated by ocamldoc from the interfaces. It can be consulted online.

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

  1. albatross
  2. asn1-combinators >= "0.2.0" & < "0.3.0"
  3. aws-s3 >= "4.0.0"
  4. builder
  5. builder-web
  6. ca-certs
  7. calculon >= "0.8"
  8. canary
  9. capnp-rpc-lwt >= "0.3.1" & < "0.5.0"
  10. capnp-rpc-net
  11. caqti
  12. carbon
  13. certify >= "0.2"
  14. clz
  15. cohttp-eio >= "6.0.0~alpha1"
  16. conan
  17. conduit-mirage < "2.1.0"
  18. cookie
  19. cookies
  20. crunch >= "3.0.0"
  21. current_github >= "0.5"
  22. current_gitlab >= "0.6.6"
  23. daypack-lib
  24. dns >= "4.0.0"
  25. dream >= "1.0.0~alpha3"
  26. dream-pure
  27. easy_xlsx
  28. ezirmin
  29. forester >= "2.2.1" & < "2.4"
  30. functoria >= "2.2.2" & < "4.0.0~beta1"
  31. git-kv
  32. git-mirage >= "3.7.0"
  33. git-unix >= "3.3.0" & < "3.16.0"
  34. icalendar
  35. irmin-mirage
  36. irmin-pack-tools
  37. irmin-tezos-utils
  38. jekyll-format
  39. jose >= "0.9.0"
  40. junit
  41. jupyter-kernel >= "0.8"
  42. letsencrypt
  43. letsencrypt-app
  44. little_logger >= "0.2.0"
  45. logs-syslog
  46. lwt-exit
  47. mastodon-archive-viewer < "0.4.0"
  48. minima-theme
  49. mirage-fs-unix >= "1.3.0"
  50. mirage-kv-mem
  51. mirage-kv-unix
  52. mirage-logs >= "0.3.0"
  53. mrmime
  54. nloge
  55. ocaml-protoc-plugin >= "6.1.0"
  56. opentelemetry
  57. opium >= "0.19.0"
  58. paf
  59. pgx_value_ptime
  60. ppx_minidebug
  61. prettym
  62. river >= "0.2"
  63. scaml
  64. sitemap
  65. slacko >= "0.15.0"
  66. stog >= "0.17.0" & < "1.0.0"
  67. syndic >= "1.5"
  68. syslog-message
  69. tar-mirage >= "1.1.0"
  70. telltime
  71. timedesc
  72. timere < "0.4.0"
  73. timere-parse < "0.0.5"
  74. timmy
  75. timmy-jsoo >= "1.1.5"
  76. timmy-unix >= "1.1.5"
  77. tiny_httpd >= "0.9"
  78. tls = "0.8.0" | >= "0.11.0" & < "0.16.0"
  79. tls-async
  80. tls-lwt >= "0.17.4"
  81. tls-miou-unix
  82. tls-mirage
  83. webmachine >= "0.6.0"
  84. x509 >= "0.6.0"
  85. xapi-stdext-date

Conflicts (1)

  1. js_of_ocaml >= "3.4.0"
OCaml

Innovation. Community. Security.