1DateTime::Infinite(3) User Contributed Perl DocumentationDateTime::Infinite(3)
2
3
4
6 DateTime::Infinite - Infinite past and future DateTime objects
7
9 version 1.52
10
12 my $future = DateTime::Infinite::Future->new();
13 my $past = DateTime::Infinite::Past->new();
14
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
22 The only constructor for these two classes is the "new()" method, as
23 shown in the SYNOPSIS. This method takes no parameters.
24
25 All "get" methods in this module simply return infinity, positive or
26 negative. If the method is expected to return a string, it returns the
27 string representation of positive or negative infinity used by your
28 system. For example, on my system calling "year()" returns a number
29 which when printed appears either "Inf" or "-Inf".
30
31 This also applies to methods that are compound stringifications, which
32 return the same strings even for things like "ymd()" or "iso8601()"
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
42 datetime@perl.org mailing list
43
44 http://datetime.perl.org/
45
47 There seem to be lots of problems when dealing with infinite numbers on
48 Win32. This may be a problem with this code, Perl, or Win32's IEEE math
49 implementation. Either way, the module may not be well-behaved on Win32
50 operating systems.
51
52 Bugs may be submitted at
53 <https://github.com/houseabsolute/DateTime.pm/issues>.
54
55 There is a mailing list available for users of this distribution,
56 <mailto:datetime@perl.org>.
57
58 I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
59
61 The source code repository for DateTime can be found at
62 <https://github.com/houseabsolute/DateTime.pm>.
63
65 Dave Rolsky <autarch@urth.org>
66
68 This software is Copyright (c) 2003 - 2020 by Dave Rolsky.
69
70 This is free software, licensed under:
71
72 The Artistic License 2.0 (GPL Compatible)
73
74 The full text of the license can be found in the LICENSE file included
75 with this distribution.
76
77
78
79perl v5.32.0 2020-07-28 DateTime::Infinite(3)