Feature Proposal: Suggestion for true two-digit week format in GMTIME


For generation of automatic up-to-date links referring to weeks, such as Project2010Week02, I need the week in true two-digit format (i.e. 02, not 2).

Description and Documentation

I suggest a new format in GMTIME, $we, which, analogously to $mo, returns the week number in two digits (i.e. 02, not 2). This is just a matter of convenience, I have already a work-around via the IF command: Project2010Week39 does the trick. Thanks for considering.





-- Contributors: ThomasSchietinger - 04 Mar 2010


Very easy change, just need to add $we which is a 0-padded version of $week. Already coded it. Waiting for approval before releasing.

-- OlivierRaginel - 08 Feb 2012

If you have time... it would be massively nifty if GMTIME could be made to take a time parameter..

Anyway, the relevant task for this proposal is Tasks.Item11506

-- PaulHarvey - 22 Feb 2012

It wasn't in the original task, and I don't feel that confident in hacking it in, even though it's a very small change. It wasn't part of the feature request... But I've coded it too, so if you tell me how/where to commit it...

-- OlivierRaginel - 24 Feb 2012

It wasn't in the original feature request so isn't part of this feature, but requires a new feature request. With documentation describing what the "time" parameter is, cos it isn't clear above.

-- CrawfordCurrie - 25 Feb 2012

Hi Crawford, I should know better than to hijack existing proposals, sorry.

Created FormatArbitraryTimes

-- PaulHarvey - 26 Feb 2012

It appears that this was merged to core back in 1.1.4. Tasks is closed. Closing request.

-- GeorgeClark - 18 Nov 2015
Topic revision: r7 - 19 Nov 2015, GeorgeClark - This page was cached on 27 Sep 2017 - 21:23.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License