package ptime
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=47c82848d26da735495c2fb9c2ed4fc45971d5a9ee97bd6d735faae0fb29b8bb
    
    
  md5=4d48055d623ecf2db792439b3e96a520
    
    
  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.
README
Ptime — POSIX time for OCaml
v0.8.5
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
Installation
Ptime can be installed with opam:
    opam install ptime
opam install js_of_ocaml ptime  # ptime with jsoo supportIf 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 (5)
- result
- 
  
    topkg
  
  
    build
- 
  
    ocamlbuild
  
  
    build & != "0.9.0"
- 
  
    ocamlfind
  
  
    build
- 
  
    ocaml
  
  
    >= "4.01.0" & < "5.0"
Dev Dependencies
None
Used by (93)
- 
  
    albatross
  
  
    < "2.4.1"
- 
  
    asn1-combinators
  
  
    < "0.3.1"
- aws-s3
- builder
- builder-web
- ca-certs
- 
  
    calculon
  
  
    >= "0.8"
- caldav
- canary
- capnp-rpc-net
- caqti
- carbon
- certify
- clz
- cohttp-eio
- conan
- 
  
    conex-mirage-crypto
  
  
    >= "1.0.0"
- 
  
    conformist
  
  
    >= "0.5.0"
- cookie
- cookies
- crunch
- current_github
- 
  
    current_gitlab
  
  
    >= "0.7.1"
- daypack-lib
- 
  
    dns
  
  
    >= "4.4.1"
- 
  
    dns-cli
  
  
    < "10.1.0"
- 
  
    dream
  
  
    >= "1.0.0~alpha3"
- dream-pure
- dream_middleware_ext
- 
  
    forester
  
  
    >= "2.2.1" & < "2.4"
- git-kv
- git-mirage
- 
  
    git-unix
  
  
    >= "3.6.0" & < "3.16.1"
- icalendar
- irmin-mirage
- irmin-pack-tools
- jekyll-format
- 
  
    jose
  
  
    >= "0.9.0"
- junit
- 
  
    jupyter-kernel
  
  
    >= "0.8"
- ledes
- letsencrypt
- letsencrypt-app
- letters
- 
  
    little_logger
  
  
    >= "0.2.0"
- logs-syslog
- lwt-exit
- 
  
    mastodon-archive-viewer
  
  
    < "0.4.0"
- minima-theme
- 
  
    mirage-kv-mem
  
  
    < "4.0.0"
- mirage-kv-unix
- mirage-logs
- mlgpx
- mrmime
- nloge
- 
  
    ocaml-protoc-plugin
  
  
    >= "6.1.0"
- opentelemetry
- 
  
    opium
  
  
    >= "0.19.0"
- paf
- pgx_value_ptime
- 
  
    plebeia
  
  
    < "2.0.0"
- ppx_minidebug
- prettym
- prom
- proton
- 
  
    rdf
  
  
    >= "0.12.0" & < "1.0.0"
- river
- rss
- sitemap
- 
  
    slacko
  
  
    >= "0.15.0"
- 
  
    stog
  
  
    >= "0.17.0" & < "1.0.0"
- 
  
    syndic
  
  
    >= "1.5"
- syslog-message
- syslog-rfc5424
- tar-mirage
- telltime
- 
  
    tezos-base
  
  
    < "16.0"
- 
  
    tezos-stdlib-unix
  
  
    < "16.0"
- 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"
- tls-async
- 
  
    tls-lwt
  
  
    >= "0.17.5"
- tls-miou-unix
- tls-mirage
- 
  
    webmachine
  
  
    >= "0.6.0"
- x509
- xapi-stdext-date
Conflicts (1)
- 
  
    js_of_ocaml
  
  
    < "3.3.0"