Changes for version v0.6.5 - 2026-04-24
- Bug Fixes
- Added %O in the supported patterns tokens for strftime(). It returns now the IANA timezone name via $dt->time_zone->name (such as Asia/Tokyo or Europe/London). This makes %O usable symmetrically for both parsing and formatting in conjunction with DateTime::Format::Lite.
- Added %E (abbreviated weekday name, alias for %a) and %h (abbreviated month name, alias for %b) that were missing from the strftime supported patterns tokens.
- Corrected %{n}N patterns (such as %3N for milliseconds and %6N for microseconds) that were returning 9 digits regardless of the specified precision. The N entry in the strftime dispatch table was ignoring its second argument (the digit count captured by the %(\d+)N regex branch).
- New Feature
- Added %:z to strftime(), returning the UTC offset with a colon separator (such as +01:00 or -05:00). This is a GNU extension also supported by Ruby and Python, useful for producing W3C/RFC 3339 formatted timestamps. The strftime regex has been extended to handle this multi-character specifier.
- Improvement
- Improved the POD for DateTime::Lite with a detailed section on supported strftime tokens.
Documentation
Compare DateTime and DateTime::Lite performance
Build the DateTime::Lite::TimeZone SQLite database
Generate leap_seconds.h for DateTime::Lite XS
Modules
Lightweight, low-dependency drop-in replacement for DateTime
Duration objects for use with DateTime::Lite
Exception object for DateTime::Lite
Infinite past and future DateTime::Lite objects
Pure-Perl fallback for the DateTime::Lite XS layer
Lightweight timezone support for DateTime::Lite
Provides
in lib/DateTime/Lite/Infinite.pm
in lib/DateTime/Lite/Infinite.pm
in lib/DateTime/Lite/Infinite.pm
in lib/DateTime/Lite.pm