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?
In reply to simple locale-dependent output functions? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |