NAME
DateTime::Infinite - Infinite past and future DateTime objects
SYNOPSIS
my $future = DateTime::Infinite::Future->new;
my $past = DateTime::Infinite::Past->new;
DESCRIPTION
This module provides two DateTime.pm subclasses, DateTime::Infinite::Future
and DateTime::Infinite::Past
.
The objects are in the "floating" timezone, and this cannot be changed.
METHODS
The only constructor for these two classes is the new()
method, as shown in the SYNOPSIS. This method takes no parameters.
All "get" methods in this module simply return infinity, positive or negative. If the method is expected to return a string, it return the string representation of positive or negative infinity used by your system. For example, on my system calling year()
returns a number which when printed appears either "inf" or "-inf".
It is not legal to attempt to mutate the object, so the set()
, set_time_zone()
, and truncate()
methods all die if called.
Obviously, the is_finite()
method returns false and the is_infinite()
method returns true.
AUTHOR
Dave Rolsky <autarch@urth.org>
COPYRIGHT
Copyright (c) 2003 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
SEE ALSO
datetime@perl.org mailing list
http://datetime.perl.org/