On Thursday 02 July 2009 16:05:00 Dave Rolsky wrote:
> On Thu, 2 Jul 2009, Vaclav Barta wrote:
> > I'm using DateTime to generate calendars on my web page (e.g.
> > http://www.mangrove.cz/calendar/vb ), which is localized to Czech and
...
> > DateTime should be extended - perhaps a parameter to month_name and
> > day_name?
> You can get this information directly from DateTime::Locale itself:
>
>   my $cs = DateTime::Locale->load('cs_CZ');
>
>   print "$_\n" for @{ $cs->month_stand_alone_wide() };
Ah yes, that works - thanks.

> Given that the stand-alone names are much less used, _and_ that they're
> typically used for things like calendars, where you need to loop over them
> anyway, I don't think it'd be that helpful to add an API to DateTime.pm
> itself for them.
Well, perhaps not, if the names are already available, but I still think using 
the format name as stand-alone in the synopsis of DateTime::Locale is 
misleading - formatting today's date would IMHO be a better example...

        Bye
                Vasek
--
http://www.mangrove.cz/
Open Source integration

Reply via email to