Subject: | Undocumented _rules attribute |
(Affects all OS and Perl versions, I don't know which version of the
module added the feature).
The _rules attribute of an DateTime::TimeZone object returns an array
of DateTime::TimeZone::OlsonDB::Rule objects. These encode the start
and end of DST observances.
my $o = DateTime::TimeZone->new(name => 'Europe/Vienna')->_rules->[1];
say sprintf "%s summertime ends at %s on %s in %s each year", $o->name,
$o->at, $o->on, $o->month;
I'd like to request that this is publicly documented, so that it can be
used reliably.
Many thanks.