.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.48) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "DateTime::Infinite 3" .TH DateTime::Infinite 3 2026-08-31 "perl v5.44.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 2 \& my $future = DateTime::Infinite::Future\->new; \& my $past = DateTime::Infinite::Past\->new; .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" This module provides two DateTime subclasses, \f(CW\*(C`DateTime::Infinite::Future\*(C'\fR and \f(CW\*(C`DateTime::Infinite::Past\*(C'\fR. .PP The objects are always in the "floating" timezone, and this cannot be changed. .SH BUGS .IX Header "BUGS" There seem to be lots of problems when dealing with infinite numbers on Win32. This may be a problem with this code, Perl, or Win32\*(Aqs IEEE math implementation. Either way, the module may not be well\-behaved on Win32 operating systems. .SH METHODS .IX Header "METHODS" The only constructor for these two classes is the \f(CW\*(C`new\*(C'\fR method, as shown in the "SYNOPSIS". This method takes no parameters. .PP All "get" methods in this module simply return infinity, positive or negative. If the method is expected to return a string, it returns the string representation of positive or negative infinity used by your system. For example, on my system calling \f(CW\*(C`$dt\->year\*(C'\fR> returns a number which when printed appears either "Inf" or "\-Inf". .PP This also applies to methods that are compound stringifications, which return the same strings even for things like \f(CW\*(C`$dt\->ymd\*(C'\fR or \f(CW\*(C`$dt\->iso8601\*(C'\fR .PP The object is not mutable, so the \f(CW\*(C`$dt\->set\*(C'\fR, \f(CW\*(C`$dt\->set_time_zone\*(C'\fR, and \f(CW\*(C`$dt\->truncate\*(C'\fR methods are all do\-nothing methods that simply return the object they are called with. .PP Obviously, the \f(CW\*(C`$dt\->is_finite\*(C'\fR method returns false and the \f(CW\*(C`$dt\->is_infinite\*(C'\fR method returns true. .SH "SEE ALSO" .IX Header "SEE ALSO" datetime@perl.org mailing list