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

NAME

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

VERSION

9       version 1.04
10

SYNOPSIS

12         my $future = DateTime::Infinite::Future->new();
13         my $past   = DateTime::Infinite::Past->new();
14

DESCRIPTION

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

BUGS

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

METHODS

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

SEE ALSO

45       datetime@perl.org mailing list
46
47       http://datetime.perl.org/
48

AUTHOR

50       Dave Rolsky <autarch@urth.org>
51
53       This software is Copyright (c) 2013 by Dave Rolsky.
54
55       This is free software, licensed under:
56
57         The Artistic License 2.0 (GPL Compatible)
58
59
60
61perl v5.16.3                      2017-08-02             DateTime::Infinite(3)
Impressum