1 package DateTime::TimeZone::UTC;
5 use vars qw ($VERSION);
8 use DateTime::TimeZone;
9 use base 'DateTime::TimeZone';
15 return bless { name => 'UTC' }, $class;
18 sub is_dst_for_datetime { 0 }
20 sub offset_for_datetime { 0 }
21 sub offset_for_local_datetime { 0 }
23 sub short_name_for_datetime { 'UTC' }
25 sub category { undef }
36 DateTime::TimeZone::UTC - The UTC time zone
40 my $utc_tz = DateTime::TimeZone::UTC->new;
44 This class is used to provide the DateTime::TimeZone API needed by
45 DateTime.pm for the UTC time zone, which is not explicitly included in
46 the Olson time zone database.
48 The offset for this object will always be zero.
52 This class has the same methods as a real time zone object, but the
53 C<category()> method returns undef and C<is_utc()> returns true.
57 Dave Rolsky, <autarch@urth.org>
59 =head1 COPYRIGHT & LICENSE
61 Copyright (c) 2003-2008 David Rolsky. All rights reserved. This
62 program is free software; you can redistribute it and/or modify it
63 under the same terms as Perl itself.
65 The full text of the license can be found in the LICENSE file included