Changes for version 0.91 - 2026-06-09

  • Add Time::Str::TimeZone for resolving IANA Time Zone Database names (and the special name 'local') to cached Time::TZif objects via the exported timezone function. Lookups dispatch through an overridable provider and the cache is cleared with the reset method.
  • Track the leap second table expiration in Time::LeapSecond. parse_leapseconds_tzdb and parse_leapseconds_iers now return (\@days, \@corrections, $expires), reading the TZDB #expires line and the IERS #@ line (converted from NTP to POSIX) and croaking if absent; the value is exposed as $Time::LeapSecond::EXPIRES.
  • Accept POSIX quoted timezone designations (e.g. <+05>) in valid_posix_timezone in Time::Str::Util.
  • Add find_local_timezone to Time::Str::Util for resolving the system's local timezone (via TZ or /etc/localtime) into a Time::TZif or Time::TZif::POSIX object.

Documentation

Modules

Leap second table with TAI/UTC conversions
Parse and format date/time strings in multiple standard formats
Gregorian calendar validation and computation
Precompiled regular expressions for date/time formats
Time validation and epoch conversion
cached lookup of IANA and local timezones
Convert captured date/time tokens to semantic values
Binary search and time zone database utilities
TZif timezone file parser with configurable local time resolution
POSIX TZ string parser with configurable local time resolution

Provides

in lib/Time/Str/PP.pm