Date::Simple::Fmt(3)

okay bestie, welcome to Date::Simple::Fmt(3) β€” the manual page for a little Date::Simple subclass that lets every object have its own formatting vibe for overloaded stringification. πŸ’…βœ¨

🌸 NAME 🌸

Date::Simple::Fmt β€” a subclass of Date::Simple with per-object-level formatting for overloaded stringification. It's giving β€œeach date gets its own little outfit” energy. πŸ‘‘

✨ SYNOPSIS ✨

use Date::Simple::Fmt;

πŸ’– DESCRIPTION πŸ’–

This module changes the default stringification behaviour of Date::Simple objects to use the format() method instead. So yeah, stringification said β€œnew format who dis” β€” no cap. It also changes the behaviour of the constructor. 🫢

The constructor-and-subroutine crew is:

Date::Simple::Fmt->new (FMT, [ARG, ...])
date_fmt (FMT, [ARG, ...])

They follow the same rules as the equivalent method (new) and subroutine (date) in Date::Simple, except the first argument is expected to be the default format for the newly created object. ✨ That's the format used when you're using overloaded stringification or when you don't provide a format argument to the format() method. Periodt. πŸ’…

🌈 SEE ALSO 🌈

Date::Simple for the full documentation. Go read it, bestie β€” it's the main character. πŸ“šπŸ’–

πŸ’€ POD ERRORS πŸ’€

Hey! The above document had some coding errors, which are explained below β€” not me making this up, the POD was lowkey fighting for its life: 😭

  • Around line 39: '=item' outside of any '=over'
  • Around line 48: You forgot a '=back' before a '=head1'

mwah πŸ’‹ β€” this page is from perl v5.42.0, dated 2012-05-22, and yes, it's Date::Simple::Fmt(3). slay and goodbye. 🌟

πŸ“¦ where this page comes from