On Wed, 15 Jan 2003 13:17:29 -0600 (CST), [EMAIL PROTECTED] wrote:
>On Wed, 15 Jan 2003, Yitzchak Scott-Thoennes wrote:
>
>> It just strips off the E or O and uses the next char as the format.
>
>I know that much but ...
>
>>        %Ec is  replaced  by  the locale's alternative date and time
>>            representation.
>
>Alternative such as ...????
>
>>        %Od is  replaced by the day of the month, using the locale's
>>            alternative  numeric  symbols  (filled  as  needed  with
>>            leading  zeros,  or  with  leading spaces if there is no
>>            alternative symbol for zero).
>
>Date::Parse implements roman numerals for this.  I'm not sure this is
>really worth adding to the core code.  There's roman numeral code on CPAN.

You get all the locale info by calling nl_langinfo.  There should be no
need to form roman numerals.
See:
http://www.opengroup.org/onlinepubs/007904975/functions/nl_langinfo.html
http://www.opengroup.org/onlinepubs/007904975/basedefs/langinfo.h.html
http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap07.html#tag_07

Of course, once you have to resort to XS, you might as well call the C library
strftime.

Reply via email to