package ptime

  1. Overview
  2. Docs
POSIX time for OCaml

Install

Authors

Maintainers

Sources

ptime-0.8.6.tbz
sha512=dbb5a1caae995381672ebe95b6824d62d6092e099d0f40099bab049f2f87516fd3657d59694739423e1c0948efd43e50fa06664975593deffe86ba16f6f9fbb9

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 has no dependency. 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

Tags

time posix system org:erratique

Published: 29 Nov 2021

README

Ptime — POSIX time for OCaml

v0.8.6

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 has no dependency. 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 (4)

  1. topkg build & >= "1.0.3"
  2. ocamlbuild build & != "0.9.0"
  3. ocamlfind build
  4. ocaml >= "4.03.0"

Dev Dependencies

None

Used by (91)

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

Conflicts (1)

  1. js_of_ocaml <= "3.3.0"