Couldn't find this in the FAQ...

If I create a datetime with a locale,

$dt = DateTime->now(locale=>'fr_FR');

I know there is a locale in that datetime object...

$dt->locale

and I know that locale knows what formatting it prefers (such as day-month-year versus month-day-year abbreviations). But is there an less verbose way to pull it out than this:

$dt->strftime($dt->locale->date_formats->{'medium'});

I was hoping for something like $dt->medium_format.... does it exist?

-Doug

Reply via email to