package ptime
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha512=b0c3240dd9e777a5e60b5269eb2e312fc644d29ef55e257d2f2538c03bf62274173ed36e13858c44d2dbee8fe375c9c483e705706e4aa5b3b5c4609ca6324a5c
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 or JavaScript runtime system. Ptime and its libraries are distributed under the ISC license.
Home page: http://erratique.ch/software/ptime
README
Ptime — POSIX time for OCaml
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 or JavaScript runtime system. 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 ptimeIf you don't use opam consult the opam file for build instructions.
Documentation
The documentation can be consulted online or via odig doc mtime.
Questions are welcome but better asked on the OCaml forum than on the issue tracker.
Sample programs
See test/min_clock.ml.
If you installed ptime with opam sample programs are located in the directory opam var ptime:doc.
Dependencies (4)
-
topkg
build & >= "1.0.3" -
ocamlbuild
build & != "0.9.0" -
ocamlfind
build -
ocaml
>= "4.08.0"
Dev Dependencies
None
Optional Dependencies
None
- a2a-client
- activitypub
- albatross
-
asn1-combinators
!= "0.2.5" - atproto
- aws-eio
- aws-s3
- awskit
- awskit-eio
- awskit-lwt
- awskit-lwt-unix
- awskit-s3
- awskit-s3-eio
- awskit-s3-lwt
- awskit-s3-lwt-unix
- awskit-s3-sim
- awskit-unix
- builder
- builder-web
- ca-certs
-
calculon
>= "0.8" - caldav
- canary
- capnp-rpc-net
- caqti
- carbon
-
catala-lsp
>= "1.0.0" - certify
- chamelon
- clz
- cohttp-eio
- conan
-
conex-mirage-crypto
>= "1.0.0" -
conformist
>= "0.5.0" - cookie
- cookies
- crunch
- current_github
-
current_gitlab
>= "0.7.1" - DkZero_Base
- daypack-lib
-
dns
>= "4.4.1" - dns-cli
-
dream
>= "1.0.0~alpha3" - dream-pure
- dream_middleware_ext
-
fit
>= "1.2.0" -
fluxt
>= "0.0.1~beta2" -
forester
>= "2.2.1" - git-kv
- git-mirage
-
git-unix
>= "3.6.0" & < "3.16.1" -
http-date
< "0.2" - icalendar
- irmin-mirage
- irmin-pack-tools
- jekyll-format
-
jose
>= "0.9.0" - jsonfeed
- jsonschema-validation
- junit
-
jupyter-kernel
>= "0.8" - kube
- ledes
- letsencrypt
- letsencrypt-app
- letters
-
little_logger
>= "0.2.0" - logs-syslog
- lwt-exit
- MlFront_Exec
- mastodon-archive-viewer
- memtrace-mirage
- minima-theme
-
mirage-kv
>= "6.0.1" - mirage-kv-mem
- mirage-kv-unix
- mirage-logs
- mirage-ptime
-
mkernel
>= "0.0.3" - mlgpx
- mrmime
- neodriver_core
-
neodriver_eio
>= "0.9.0" - nloge
-
ocaml-protoc-plugin
>= "6.1.0" - opentelemetry
-
opium
>= "0.19.0" - otoggl
- paf
- pgx_value_ptime
- plebeia
- polymarket
- ppx_minidebug
- prettym
- prom
- proton
- raga
- rdf
- riot
- river
- rss
-
SZXX
>= "4.1.0" - sitemap
-
slacko
>= "0.15.0" - statocaml
-
stk
>= "0.2.0" -
stog
>= "0.17.0" -
syndic
>= "1.5" - syslog-message
-
syslog-rfc5424
< "0.2" - tar-mirage
- 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
>= "0.12.8" & < "0.16.0" | >= "2.0.3" - tls-async
-
tls-eio
>= "0.17.5" -
tls-lwt
>= "0.17.5" - tls-miou-unix
- tls-mirage
-
webmachine
>= "0.6.0" - x509
- xapi-stdext-date
Conflicts
None
Build status
Results of building ptime with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 1.2.0 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure