package ptime
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=c3168ece6a7d3bdef2baaa64190d033ad9de1c9546e66d42a98b0a467ee733a9
md5=9d5ad46d4bbf19f2419fa121bf6c111a
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 BSD3 license.
README
Ptime — POSIX time for OCaml
Release 0.8.0
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 BSD3 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 and there is a generated version in the doc
directory of the distribution.
Sample programs
If you installed Ptime with opam
sample programs are located in the directory opam config var ptime:doc
.
In the distribution sample programs are located in the test
directory of the distribution. They can be built with:
ocamlbuild -use-ocamlfind test/tests.otarget
The resulting binaries are in _build/test
.
test.native
tests the library, nothing should fail.test_unix.native
tests the library against the results ofUnix.gmtime
. Invoke with--help
for more informations.
Dependencies (4)
- result
-
ocamlbuild
build & != "0.9.0"
-
ocamlfind
build
-
ocaml
>= "4.01.0" & < "4.06.0"
Dev Dependencies
None
Used by (75)
- albatross
-
asn1-combinators
>= "0.2.0" & != "0.2.3" & < "0.3.0"
-
aws-s3
>= "4.0.0"
- builder
- builder-web
- ca-certs
-
calculon
>= "0.8"
- canary
-
capnp-rpc-lwt
>= "0.3.1" & < "0.5.0"
- capnp-rpc-net
- caqti
- carbon
-
certify
>= "0.2"
- clz
-
cohttp-eio
>= "6.0.0~alpha1"
- conan
-
conduit-mirage
< "2.1.0"
- cookie
- cookies
-
crunch
>= "3.0.0"
-
current_github
>= "0.5"
-
current_gitlab
>= "0.6.6"
- daypack-lib
-
dns
>= "4.0.0"
- easy_xlsx
- ezirmin
-
forester
>= "2.2.1" & < "2.4"
-
functoria
>= "2.2.2" & < "4.0.0~beta1"
- git-kv
-
git-mirage
>= "3.7.0"
-
git-unix
>= "3.3.0" & < "3.16.0"
- icalendar
- irmin-mirage
- irmin-pack-tools
- irmin-tezos-utils
- jekyll-format
-
jose
>= "0.9.0"
- junit
-
jupyter-kernel
>= "0.8"
- letsencrypt
- letsencrypt-app
-
little_logger
>= "0.2.0"
- logs-syslog
- lwt-exit
-
mastodon-archive-viewer
< "0.4.0"
- minima-theme
-
mirage-fs-unix
>= "1.3.0"
- mirage-kv-mem
- mirage-kv-unix
- nloge
-
ocaml-protoc-plugin
>= "6.1.0"
- opentelemetry
-
opium
>= "0.19.0"
- paf
- ppx_minidebug
- prettym
-
river
>= "0.2"
- scaml
- sitemap
-
slacko
>= "0.15.0"
-
syndic
>= "1.5"
- syslog-message
-
tar-mirage
>= "1.1.0"
- telltime
- timedesc
-
timere
< "0.4.0"
-
timere-parse
< "0.0.5"
- timmy
-
timmy-jsoo
>= "1.1.5"
-
timmy-unix
>= "1.1.5"
-
tiny_httpd
>= "0.9"
- tls-miou-unix
-
webmachine
>= "0.6.0"
-
x509
>= "0.6.0"
- xapi-stdext-date
Conflicts
None