package timezone
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=43026ee35551b996c627b0759e20da1a01609a3fd999eb6ba3149632dd625adf
Description
Timezone handles parsing timezone data and create [Timezone.t] that can later be used to manipulate time in core_kernel or core.
Added to opam-repository:
README
Timezone for OCaml
Timezone handles parsing timezone data and create [Timezone.t] that can later be used to manipulate time in core (using [Time] and [Time_ns] modules).
Timezone is currently only able to read the Timezone Database provided by IANA. It should work out of the box on Linux and macOS.
Where are the timezone data located ?
The location of the timezone files can be set using the environment variable TZDIR. If not set, [Timezone] will fallback to /usr/share/zoneinfo/.
What is the local timezone ?
The local timezone can be set using the environment variable TZ. If not set, [Timezone] will fallback to /etc/localtime. In a JavaScript context, we automatically set the environment variable TZ to Intl.DateTimeFormat().resolvedOptions().timeZone.
Compatibility with JavaScript.
The [Timezone] library can be used when constructing JavaScript applications with Js_of_ocaml.
In the past, web browsers needed to be provided with a copy of the timezone database, but this is no longer required.
Please report bugs and feature requests on GitHub.
You can find all of Jane Street's open-source libraries on GitHub.
Documentation can be found here.
Dependencies (4)
Dev Dependencies
None
Optional Dependencies
None
Conflicts
None
Build status
Results of building timezone 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 |
|---|---|---|---|---|---|
| v0.17.0 (this version) | n/a | n/a | good | good | good |
| v0.16.0 | n/a | good | good | n/a | n/a |
| v0.15.0 | good | good | n/a | n/a | n/a |
- 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