The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

DateTime::TimeZone::UTC - The UTC time zone

SYNOPSIS

  my $utc_tz = DateTime::TimeZone::UTC->new;

DESCRIPTION

This class is used to provide the DateTime::TimeZone API needed by DateTime.pm for the UTC time zone, which is not explicitly included in the Olson time zone database.

The offset for this object will always be zero.

USAGE

This class has the same methods as a real time zone object, but the category() method returns undef and is_utc() returns true.