1DateTime::Infinite(3) User Contributed Perl DocumentationDateTime::Infinite(3)
2
3
4
6 DateTime::Infinite - Infinite past and future DateTime objects
7
9 my $future = DateTime::Infinite::Future->new;
10 my $past = DateTime::Infinite::Past->new;
11
13 This module provides two DateTime.pm subclasses, "DateTime::Infi‐
14 nite::Future" and "DateTime::Infinite::Past".
15
16 The objects are in the "floating" timezone, and this cannot be changed.
17
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
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 "is_infi‐
39 nite()" method returns true.
40
42 Dave Rolsky <autarch@urth.org>
43
45 Copyright (c) 2003-2006 David Rolsky. All rights reserved. This pro‐
46 gram is free software; you can redistribute it and/or modify it under
47 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
53 datetime@perl.org mailing list
54
55 http://datetime.perl.org/
56
57
58
59perl v5.8.8 2007-03-30 DateTime::Infinite(3)