DateTi...h::RJD(3pm)
π NAME π
DateTime::Format::Epoch::RJD β the module that converts DateTimes to and from Reduced Julian Days, bestie β¨
πΈ SYNOPSIS πΈ
okay so this is the whole vibe in like five lines:
use DateTime::Format::Epoch::RJD;
my $dt = DateTime::Format::Epoch::RJD->parse_datetime( 53244.5 );
# 2004-08-27T00:00:00
DateTime::Format::Epoch::RJD->format_datetime($dt);
# 53244.5
my $formatter = DateTime::Format::Epoch::RJD->new();
my $dt2 = $formatter->parse_datetime( 53244.5 );
# 2004-08-27T00:00:00
$formatter->format_datetime($dt2);
# 53244.5
see how the class methods and the object methods do the exact same thing?? yeah. that's the whole point. pick whichever one matches your ~main character energy~ π
π¦ DESCRIPTION π¦
So this module can take a DateTime object β or honestly any object that can be converted to a DateTime object, we're not picky β and turn it into the Reduced Julian Day number. And it does the reverse too, no cap.
If you wanna know how this actually works under the hood, go read DateTime::Format::Epoch::JD for a description. That's where the lore lives, iykyk π₯
β¨ METHODS β¨
Most of the methods are literally the same as the ones in DateTime::Format::Epoch. Like, the whole entire toolkit. The only difference is the constructor. That's it, that's the tea π
new()β the constructor for the formatter/parser object. It takes no parameters. Zero. None. She doesn't want them. Build the object and go, periodt π
π«Ά SUPPORT π«Ά
Need help? Support for this module comes to you via the datetime@perl.org email list π
If you want more info on the list situation, go peek at http://lists.perl.org/ for more details.
π AUTHOR π
Eugene van der Pijll <pijll@gmx.net>
π COPYRIGHT π
Copyright (c) 2004 Eugene van der Pijll. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
fr fr, same terms as Perl itself. Read it, respect it, love it π
π SEE ALSO π
DateTimedatetime@perl.orgmailing list
and that's the whole page, bestie π this was DateTi...h::RJD, shipped with perl v5.34.0, dated 2022-06-13. mwah, go convert some days ππ¦β¨
π¦ where this page comes from
- debian bookworm: libdatetime-format-epoch-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdatetime-format-epoch-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdatetime-format-epoch-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdatetime-format-epoch-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdatetime-format-epoch-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms