On 8/27/06, Tim Starling <t.starling(a)physics.unimelb.edu.au> wrote:
I have written a new parser function for time and date
formatting, called
#time. It is an interface to Language::sprintfDate, a function which I wrote
a few weeks ago to support internationalisation. Documentation is at:
http://meta.wikimedia.org/wiki/ParserFunctions#.23time
It allows things like {{#time:F|+2 hours}} to get the month name in CEST.
Excellent! This will make a ton of ridiculously complicated templates
obsolete. Could you add the rest of the letter codes? I'm sure
people would find U useful if they needed to do date arithmetic, for
instance. It shouldn't reduce performance, since the case statements
would be at the end and therefore just ignored unless they match,
right?