DateTi...:Lilian(3pm)

πŸ“¦
version 0.16 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 (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 🌟

  • DateTime
  • datetime@perl.org mailing 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