Data::P...DateTime(3)

πŸ¦‹ Data::P...DateTime(3) β€” Data::Printer::Filter::DateTime, bestie edition

okay so picture this: it's a User Contributed Perl Documentation page, the vibes are immaculate, and the module is literally called Data::Printer::Filter::DateTime ✨ β€” it pretty-prints date and time objects. and not just DateTime! not even close, bestie πŸ’…


🌸 NAME 🌸

Data::Printer::Filter::DateTime β€” pretty-printing date and time objects. and no, it's not just DateTime! it handles a whole friend group of them 🫢


✨ SYNOPSIS ✨

so first things first: you drop this into your .dataprinter file β€” like this, exactly:

filters = DateTime

and that's the whole setup. slay. πŸŽ€

you can also customize the look and feel with the following options (defaults shown β€” these are the defaults fr fr):

filter_datetime.show_class_name = 1
filter_datetime.show_timezone   = 0

# you can even customize your themes:
colors.datetime = #cc7a23

and yes, you can even customize your themes β€” colors.datetime = #cc7a23 is giving main character energy 🧚

that's it! genuinely. that's the whole thing. periodt. πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

okay so this is a filter plugin for Data::Printer, right? it filters through several date and time manipulation classes and displays the time (or time duration) as a string. literally that simple, no cap 🌈

πŸ“ Parsed Modules

here's the full roster β€” every single one, no skips:

  • Time::Piece, Time::Seconds ⭐
  • Time::Moment
  • DateTime, DateTime::Duration, DateTime::Incomplete, DateTime::TimeZone πŸ‘‘
  • DateTime::Tiny
  • Date
  • Date::Tiny
  • Date::Calc::Object
  • Date::Handler, Date::Handler::Delta
  • Date::Simple
  • Mojo::Date
  • Class::Date, Class::Date::Rel
  • Date::Manip

if you have any suggestions for more modules or better output, please let us know πŸ’Œ β€” we're literally always down to hear it πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

  • Data::Printer β€” the one that started it all πŸ’œ

and that's the page!! mwah πŸ’‹

this lil beauty is perl v5.42.0, dated 2024-01-23, filed under Data::P...DateTime(3) β€” go forth and pretty-print your timestamps, bestie πŸ¦‹πŸŒΈπŸ’–

πŸ“¦ where this page comes from