Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need some functions to output numbers, dates, and times in a locale-dependent way with some predefined formats. I just want to specify the locale and one of these general formats: "number with 2 digits after decimal", "money with 2 digits after decimal", "short date", "medium date", "long date", "time without seconds", "time with seconds". The routines should handle/pick the formatting details that make sense for me.
For example time can perhaps be in 12-hour or 24-hour format, with different separator according to the locale: 11:22 PM or 23:22 or even 23h22. Short date output could perhaps be something like 2007.12.31 or 12/31/2007, numbers could be "23 000 000.00" or "23.000.000,00", etc. Basically I could care less as long as it is the common format for that locale.
Any module to do that?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: simple locale-dependent output functions?
by TOD (Friar) on Nov 15, 2007 at 04:46 UTC | |
by angiehope (Pilgrim) on Nov 15, 2007 at 10:10 UTC | |
by Anonymous Monk on Nov 15, 2007 at 05:23 UTC |