[Perl] Multilingual date

Shlomo Yona shlomo at cslx.haifa.ac.il
Wed Feb 13 01:40:35 PST 2002


I am looking for a way to get a date in Perl, which is sensitive to the locale used.
What I mean, is, if I'm with a Frech locale, I'll get the answer using French conventions, and If my locale is German, I will get the date using German conventions.

For example,
Querying for today's date, using some English locale, I expect to get something like

Wednesday, 13 February, 2002.

But using a French Locale I expect to get 
Mercredi, 13 février, 2002

(or any other acceptable variation).


Shlomo Yona
shlomo at cs.haifa.ac.il

More information about the Perl mailing list