DateTi...:Lilian(3pm)
β¨ DateTime::Format::Epoch::Lilian π
okay bestie, welcome to the DateTime::Format::Epoch::Lilian page from the User Contributed Perl Documentation π this is the one that does Convert DateTimes to/from Lilian Days, and yes it's exactly as niche and exactly as slay as it sounds.
πΈ SYNOPSIS πΈ
here's the whole vibe, copy-paste ready, no notes:
use DateTime::Format::Epoch::Lilian;
my $dt = DateTime::Format::Epoch::Lilian->parse_datetime( 53244.5 );
# 2004-08-27T00:00:00
DateTime::Format::Epoch::Lilian->format_datetime($dt);
# 53244.5
my $formatter = DateTime::Format::Epoch::Lilian->new();
my $dt2 = $formatter->parse_datetime( 53244.5 );
# 2004-08-27T00:00:00
$formatter->format_datetime($dt2);
# 53244.5
like. 53244.5 in, 2004-08-27T00:00:00 out. and then back again. it's giving round trip, it's giving balance π¦
β¨ DESCRIPTION β¨
so what does this lil module actually do. it can convert a DateTime object β or honestly any object that can be converted to a DateTime object, we don't gatekeep β into the Modified Julian Day number.
and if you want the full lore on how that works? bestie, go read DateTime::Format::Epoch::JD, it has a description. this page is not the page for that. π
π METHODS π
okay so here's the tea: most of the methods are the same as those in DateTime::Format::Epoch. the only difference is the constructor. that's it. that's the whole plot twist.
new()β constructor of the formatter/parser object. it has no parameters. none. zero. it just exists, no cap. β¨
π«Ά SUPPORT π«Ά
need help? support for this module is provided via the datetime@perl.org email list π and you can peep http://lists.perl.org/ for more details. the group chat is always open, come through.
π AUTHOR π
Eugene van der Pijll <pijll@gmx.net> β icon, legend, the moment. π
π 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.
(so like, free software, same terms as Perl itself, we love a permissive king π)
π SEE ALSO π
DateTimedatetime@perl.orgmailing list
perl v5.34.0 πΈ 2022-06-13 β that's the version and the date this lil page was last touched, mwah, thanks for coming to my ted talk, go convert some Lilian Days bestie ππ¦β¨
π¦ 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