package ptime

  1. Overview
  2. Docs
POSIX time for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

ptime-0.8.1.tbz
sha256=40b38e4e7f4b4a5baafa47355c852e2c3686a7b3a2c967d937a5caa7e470f8e4
md5=90df07ad48679b59a2c344bc4c71708c

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: 15 Jul 2016

README

Ptime — POSIX time for OCaml

v0.8.1

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

  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. nloge
  54. ocaml-protoc-plugin >= "6.1.0"
  55. opentelemetry
  56. opium >= "0.19.0"
  57. paf
  58. ppx_minidebug
  59. prettym
  60. river >= "0.2"
  61. scaml
  62. sitemap
  63. slacko >= "0.15.0"
  64. syndic >= "1.5"
  65. syslog-message
  66. tar-mirage >= "1.1.0"
  67. telltime
  68. timedesc
  69. timere < "0.4.0"
  70. timere-parse < "0.0.5"
  71. timmy
  72. timmy-jsoo >= "1.1.5"
  73. timmy-unix >= "1.1.5"
  74. tiny_httpd >= "0.9"
  75. tls = "0.8.0" | >= "0.11.0" & < "0.16.0"
  76. tls-async
  77. tls-lwt >= "0.17.4"
  78. tls-miou-unix
  79. tls-mirage
  80. webmachine >= "0.6.0"
  81. x509 >= "0.6.0"
  82. xapi-stdext-date

Conflicts (1)

  1. js_of_ocaml >= "3.4.0"
OCaml

Innovation. Community. Security.