Movatterモバイル変換


[0]ホーム

URL:


packagetimezone

  1. Overview
  2. Docs

You can search for identifiers within the package.

in-package search v0.2.0

Time-zone handling

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=43026ee35551b996c627b0759e20da1a01609a3fd999eb6ba3149632dd625adf

Description

Timezone handles parsing timezone data and create [Timezone.t] thatcan later be used to manipulate time in core_kernel or core.

Published:26 May 2024

README

Timezone for OCaml

Timezone handles parsing timezone data and create [Timezone.t] that can later be used to manipulate time incore (using [Time] and [Time_ns] modules).

Timezone is currently only able to read the Timezone Database provided byIANA. 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 variableTZDIR. If not set, [Timezone] will fallback to/usr/share/zoneinfo/.

What is the local timezone ?

The local timezone can be set using the environment variableTZ. If not set, [Timezone] will fallback to/etc/localtime. In a JavaScript context, we automatically set the environment variableTZ toIntl.DateTimeFormat().resolvedOptions().timeZone.

Compatibility with JavaScript.

The [Timezone] library can be used when constructing JavaScript applications withJs_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 onGitHub.

You can find all of Jane Street's open-source libraries onGitHub.

Documentation can be foundhere.

Dependencies (4)

  1. dune>= "3.11.0"
  2. ppx_jane>= "v0.17" & < "v0.18"
  3. core>= "v0.17" & < "v0.18"
  4. ocaml>= "5.1.0"

Dev Dependencies

None

Used by (2)

  1. async_log
  2. core_unix>= "v0.17.0"

Conflicts

None


[8]ページ先頭

©2009-2025 Movatter.jp