Rose::DateTime(3pm)

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

πŸ’– Rose::DateTime πŸ’–

ok so bestie, welcome to Rose::DateTime β€” the DateTime helper functions and objects situation. it's giving "small but mighty", fr fr. ✨


✨ SYNOPSIS ✨

ok so here's the vibe, copy-paste and go:

use Rose::DateTime::Util qw(:all);

$now  = parse_date('now');
$then = parse_date('12/25/2001 6pm');

$date_text = format_date($then, "%D at %T %p");

...

use Rose::DateTime::Parser;

$parser = Rose::DateTime::Parser->new(time_zone => 'UTC');

$date = $parser->parse_date('12/25/1999');

see? iconic. no cap. 🫢


🌸 DESCRIPTION 🌸

so the Rose::DateTime::* modules are basically a little squad of convenience functions and objects that hang out with DateTime dates. that's the whole job. πŸ’…

Rose::DateTime::Util is carrying a simple date parser plus a slightly customized date formatter. lowkey the workhorse.

Rose::DateTime::Parser wraps a date parser up with its own associated default time zone. it's the parser but with commitment issues resolved. πŸŽ€

and then there's this module β€” Rose::DateTime itself β€” which honestly exists mostly just to provide a version number for CPAN. that's it. that's the whole personality. 😭 it's the group chat member who never types but is still in the chat. the actual documentation lives in the individual modules, so go read those for the real tea.

ngl if you came here looking for functions, you're in the wrong room bestie β€” but the version number is here and it ate. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

  • DateTime
  • DateTime::TimeZone

go forth, they're both bangers. ✨


πŸ’œ AUTHOR πŸ’œ

John C. Siracusa (siracusa@gmail.com) β€” the main character who made all this happen. πŸŒˆπŸ‘‘


πŸŽ€ LICENSE πŸŽ€

Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

so yeah, same terms as Perl itself β€” do your thing, just respect the terms. periodt. πŸ’–


ok that's the whole page bestie, ty for coming to my ted talk 🧚

this was Rose::DateTime from perl v5.34.0, dated 2022-06-17 β€” mwah, stan, see u next manpage πŸ’…πŸ“β­

πŸ“¦ where this page comes from