1DateTime::Infinite(3) User Contributed Perl DocumentationDateTime::Infinite(3)
2
3
4

NAME

6       DateTime::Infinite - Infinite past and future DateTime objects
7

SYNOPSIS

9         my $future = DateTime::Infinite::Future->new;
10         my $past   = DateTime::Infinite::Past->new;
11

DESCRIPTION

13       This module provides two DateTime.pm subclasses,
14       "DateTime::Infinite::Future" and "DateTime::Infinite::Past".
15
16       The objects are in the "floating" timezone, and this cannot be changed.
17

BUGS

19       There seem to be lots of problems when dealing with infinite numbers on
20       Win32.  This may be a problem with this code, Perl, or Win32's IEEE
21       math implementation.  Either way, the module may not be well-behaved on
22       Win32 operating systems.
23

METHODS

25       The only constructor for these two classes is the "new()" method, as
26       shown in the SYNOPSIS.  This method takes no parameters.
27
28       All "get" methods in this module simply return infinity, positive or
29       negative.  If the method is expected to return a string, it return the
30       string representation of positive or negative infinity used by your
31       system.  For example, on my system calling "year()" returns a number
32       which when printed appears either "inf" or "-inf".
33
34       The object is not mutable, so the "set()", "set_time_zone()", and
35       "truncate()" methods are all do-nothing methods that simply return the
36       object they are called with.
37
38       Obviously, the "is_finite()" method returns false and the
39       "is_infinite()" method returns true.
40

AUTHOR

42       Dave Rolsky <autarch@urth.org>
43
45       Copyright (c) 2003-2009 David Rolsky.  All rights reserved.  This
46       program is free software; you can redistribute it and/or modify it
47       under the same terms as Perl itself.
48
49       The full text of the license can be found in the LICENSE file included
50       with this module.
51

SEE ALSO

53       datetime@perl.org mailing list
54
55       http://datetime.perl.org/
56
57
58
59perl v5.10.1                      2017-03-21             DateTime::Infinite(3)
Impressum