Rand Stats

Timezones::US

zef:tbrowder

Actions Status Actions Status Actions Status

NAME

Timezones::US - Provides US time zone data and subroutines for use with modules 'DateTime::US' and 'LocalTime'

SYNOPSIS

use Timezones::US;

DESCRIPTION

Raku module Timezones::US provides constant US time zone data (currently valid through the year 2030) to be used by related date and time dynamic modules.

The following table shows the time zones included:

US Time Zones
NameSymbolUTC offset (hrs)
AtlanticAST-4,
EasternEST-5
CentralCST-6
MountainMST-7
PacificPST-8
AlaskaAKST-9
Hawaii-AleutianHAST-10
SamoaWST-11
ChamorroCHST+10

Exported constants

The following constants are automatically exported into the using environment:

Exported subroutines

The following subroutines are automatically exported into the using environment:

Note some of these routines are now duplicated in module DateTime::US, but those are (1) perpetual and (2) return Date objects instead of DateTime objects which are preferred for use by the author's module Calendar. As well, this module was designed to be completely standalone.

If the user requires "perpetual" DST dates for all all years affected under current US federal law, please use the routines in DateTime::US.

AUTHOR

Tom Browder tbrowder@acm.org

COPYRIGHT AND LICENSE

© 2022-2024 Tom Browder

This library is free software; you may redistribute it or modify it under the Artistic License 2.0.