create new tag
, view all tags

Patch Proposal: Adds $dow and $week (number) vars to the GMTIME var


I needed the calendar week number and the day_of_week number in some of my applications.


Adds $dow and $week (number) vars to the GMTIME variable.


$dow day of week (number) ranges 0-6
$week calendar week number ranges 1-53 (ISO 8601)


Day of week: $dow ($wday)
CW: $week


Any comments on how the patch is implemented or could be improved

Note: Patch is attached as http://twiki.org/p/pub/Codev/DowAndWeekNumberInGmTime/TWiki.pm.dow-week.diff. The patch is against the svn rep #3566.


SMELL: Are there really two places in the code (TWikiDotPm and SpreadSheetPlugin) where date/time formatting happens?

BTW: This patch can easily be added to the SpreadSheetPlugin too! wink

-- FranzJosefSilli - 25 Jan 2005

My colleague AlexanderStedile patched the patch (does this make it a patch2 ?) so that it now works fine without side effects.

-- FranzJosefSilli - 25 Jan 2005

Thanks FranzJosefSilli. I found the bug, too, but was too busy to repair and doc it yet.

-- OliverKrueger - 27 Jan 2005

Implemented in DEVELOP r3640

-- CrawfordCurrie - 17 Feb 2005

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatdiff TWiki.pm.dow-week.diff r2 r1 manage 1.6 K 2005-01-25 - 15:41 UnknownUser patched diff against svn #3566 (main)
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2005-02-17 - CrawfordCurrie
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.