1 package DateTime::TimeZone::Floating;
5 use vars qw ($VERSION @ISA);
8 use DateTime::TimeZone;
9 use base 'DateTime::TimeZone::OffsetOnly';
15 return bless { name => 'floating',
16 offset => 0 }, $class;
25 my $serialized = shift;
27 my $class = ref $self || $self;
30 if ( $class->isa(__PACKAGE__) )
32 $obj = __PACKAGE__->new();
49 DateTime::TimeZone::Floating - A time zone that is always local
53 my $floating_tz = DateTime::TimeZone::Floating->new;
57 This class is used to provide the DateTime::TimeZone API needed by
58 DateTime.pm, but for floating times, as defined by the RFC 2445 spec.
59 A floating time has no time zone, and has an effective offset of zero.
63 This class has the same methods as a real time zone object, but the
64 C<short_name_for_datetime()>, and C<category()> methods both return
69 Dave Rolsky, <autarch@urth.org>
71 =head1 COPYRIGHT & LICENSE
73 Copyright (c) 2003-2008 David Rolsky. All rights reserved. This
74 program is free software; you can redistribute it and/or modify it
75 under the same terms as Perl itself.
77 The full text of the license can be found in the LICENSE file included