DateTi...ataDie(3pm)

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

✨ NAME ✨

okay so bestie, gather round πŸ’– this is DateTime::Format::Epoch::RataDie β€” she converts DateTimes to and from Rata Die. that's it, that's the whole gig, and she ate πŸŽ€


🌸 SYNOPSIS 🌸

like, here's how you actually use her:

use DateTime::Format::Epoch::RataDie;

my $dt = DateTime::Format::Epoch::RataDie->parse_datetime( $count );

DateTime::Format::Epoch::RataDie->format_datetime($dt);
 # $count

my $formatter = DateTime::Format::Epoch::RataDie->new();
my $dt2 = $formatter->parse_datetime( $count );
$formatter->format_datetime($dt2);

no cap, that's the whole vibe check right there. ✨


πŸ’… DESCRIPTION πŸ’…

so this module can convert a DateTime object β€” or literally any object that can be converted to a DateTime object β€” to the Rata Die count. πŸ¦‹

and if you want the actual description of how that works? go read DateTime::Format::Epoch::JD, she explains it. this one's just here to be cute and do the conversion. iykyk πŸ’œ


πŸ‘‘ METHODS πŸ‘‘

most of the methods are the same as those in DateTime::Format::Epoch. the only difference is the constructor. that's it. one little glow-up. periodt. πŸ’…

  • new() β€” constructor of the formatter/parser object. she has no parameters, she's low maintenance, she's iconic πŸŽ€

🫢 SUPPORT 🫢

support for this module is provided via the datetime@perl.org email list. more deets over at http://lists.perl.org/ if you wanna peek ✨


🌈 AUTHOR 🌈

Eugene van der Pijll <pijll@gmx.net> β€” thank you king πŸ‘‘


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. πŸ“


πŸ”₯ SEE ALSO πŸ”₯

  • DateTime
  • the datetime@perl.org mailing list

and that's the whole page bestie, we're done here 🧚

this lil beauty is perl v5.34.0, dated 2022-06-13 β€” mwah, sending you off with a πŸŽ€ and a πŸ’œ, go format some epochs ✨

πŸ“¦ where this page comes from