package timedesc
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=3679d0a56384d66b7f1799645913dd0f0a6a5c252570d8be679184e984102caf
doc/timedesc/Timedesc/Time_zone/index.html
Module Timedesc.Time_zoneSource
Makes a time zone from name.
Naming follows the convention used in /usr/share/zoneinfo/posix/ distributed on Linux, e.g. "Australia/Sydney".
See available_time_zones for checking usable time zone names at runtime.
Alternatively, if you are using timedesc.tzdb.full (the default implementation for timedesc.tzdb), then you can also see available-time-zones.txt for available time zones.
make handles names with "UTC" prefix specially, following holds regardless of DB backend chosen
UTCis alway interpreted asutcUTC+/-offsetis always interpreted as call tomake_offset_onlywith the provided signed offset- e.g. "UTC+1:30" is equivalent to
make_offset_only (Span.For_human.make_exn ~hours:1 ~minutes:30 ()) offsetmay be single/double digit hour, optionally followed by colon and single/double digit minute
- e.g. "UTC+1:30" is equivalent to
Returns the recorded offsets of a time zone in ascending order
This is mainly used for when you only have an offset to work with, and you don't need to do any accurate search over time zones.
One use of this is to create a time zone for to_string functions.
Returns None when offset exceeds 24 hours in size.