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
- Re: How to get a localized string Doug Treder
- Re: How to get a localized string Dave Rolsky
- Re: How to get a localized string Doug Treder
- Re: How to get a localized string Dave Rolsky
- Re: How to get a localized string Doug Treder
- Re: How to get a localized string Dave Rolsky
- Re: How to get a localized string Henry Sobotka
- Re: How to get a localized str... Dave Rolsky