On Mon, 6 Feb 2006, Tatsuhiko Miyagawa wrote:


How can I get "Year + Month" with DateTime::Locale framework?

All I want is a string for a valid year-month, like:

 January, 2006 (en_US)
 2006 年 1 月 (ja_JP)

Neither of available formats like lond_date_format, full_date_format
and medium_date_format suffice my need.

 $dt->strftime( '%B, %Y' );

The month and day names used by strftime respect locales, so you can always use that to get different results.


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

Reply via email to