DateTime::Infinite(3)
β¨ NAME β¨
okay so bestie, welcome to the DateTime::Infinite(3) page from User Contributed Perl Documentation π
this one's all about DateTime::Infinite β literally infinite past and future DateTime objects, no cap π°οΈβ¨
πΈ VERSION πΈ
version 1.65 β periodt, that's the one we're on π
π¦ SYNOPSIS π¦
my $future = DateTime::Infinite::Future->new;
my $past = DateTime::Infinite::Past->new;
like, that's the whole vibe. two lines, two infinities, slay β¨
π DESCRIPTION π
This module gives you two DateTime subclasses, bestie:
DateTime::Infinite::Futureβ the far, far future π₯DateTime::Infinite::Pastβ the deeply ancient past π
and here's the thing: the objects are always in the "floating" timezone, and you literally cannot change that. it's giving immutable energy, iykyk π«Ά
π METHODS π
The only constructor for these two classes is the new method, just like the "SYNOPSIS" shows. and it takes no parameters β zero, zilch, nada π
All the "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 that your system uses. for example, on my system calling $dt->year returns a number which when printed appears either "Inf" or "-Inf" π iconic honestly
This also applies to methods that are compound stringifications β they return the same strings even for things like $dt->ymd or $dt->iso8601. so yeah, $dt->ymd is out here giving "Inf" energy too, no cap π
The object is not mutable, so these methods are all do-nothing methods that simply return the object they're called with:
$dt->set$dt->set_time_zone$dt->truncate
like, they literally just hand you back the same object. not me expecting them to do something π they said "no changes, bestie" and meant it π
Obviously, the $dt->is_finite method returns false and the $dt->is_infinite method returns true. as it should β the vibe check passes β
π SEE ALSO π
datetime@perl.orgmailing list β the group chat for DateTime stans π
π BUGS π
okay so 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's IEEE math implementation. either way, the module may not be well-behaved on Win32 operating systems. so like, fair warning bestie π«Ά
Bugs may be submitted at <https://github.com/houseabsolute/DateTime.pm/issues> β the GitHub issues page, go off π
There's a mailing list available for users of this distribution, <mailto:datetime@perl.org> β pull up, say hi π
β SOURCE β
The source code repository for DateTime can be found at <https://github.com/houseabsolute/DateTime.pm>. go browse, it's giving main character repo energy π
π AUTHOR π
Dave Rolsky <autarch@urth.org> β the icon, the legend, the author π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2003 - 2023 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
The full text of the license can be found in the LICENSE file included with this distribution. read it, bestie, it's important πβ¨
and that's the whole page, fr fr π this was perl v5.42.0, dated 2024-03-08, and it's the DateTime::Infinite(3) manpage β now go forth and vibe with infinity π§ββοΈπ
π¦ where this page comes from
- opensuse-leap 16.0: perl-DateTime 1.650.0-160000.2.2 Β· Artistic-2.0
- opensuse-leap 16.0: perl-DateTime 1.650.0-160000.2.2 Β· Artistic-2.0
- opensuse-leap 16.0: perl-DateTime 1.650.0-160000.2.2 Β· Artistic-2.0
- opensuse-leap 16.0: perl-DateTime 1.650.0-160000.2.2 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms