Raku Land

The uploading author of github:alabamenhu does not match the META author of git:alabamenhu.

Timezones::ZoneInfo

github:alabamenhu

Timezones::ZoneInfo

A Raku module containing data (as well as some support routines) based on IANA's TZ database

Current IANA database version: 2022a

Usage

There are three exported subs that will be the most commonly used. Advanced users may wish to view the Routines submodule for more options.

All methods work on times with integral seconds. It is left to the end user to handle any fractional seconds.

Class reference

Timezones::ZoneInfo::Time

A Raku version of the POSIX tm struct (with BSD/GNU extension). Attributes include

The infinite ranged elements aren't actually that as they're stored as int32.

Timezones::ZoneInfo::State

A Raku version of tz's state struct. It will be made more easily introspectable in the future. For now, these are the attributes:

Data

The data comes from IANA's tz database.

Todo

Version history

Copyright and license

The tz database and the code in it is public domain. Therefore, the author of this module (Matthew Stephen Stuckwisch) would find it unconscionable to release this module under any license, even for his own additions. Consequently, this module is similarly expressly released into the public domain. For jurisdictions where that is not possible, this module may be considered © 2021–2022 and licensed under CC0 v1.0 (see accompanying license file).