First Last Prev Next    No search results available
Details
: Feature Request: variable for week # of current year
Bug#: 25012
: smarttemplate4
: General
Status: RESOLVED
Resolution: FIXED
: PC
: Linux
: unspecified
: P2
: enhancement
: ---

:
:
:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: jimy <jimy@gis.de>
Assigned To: Axel Grude <axel.grude@gmail.com>
:

Attachments
Test Version - Pre272 (234.24 KB, application/x-xpinstall)
2012-07-18 03:22, Axel Grude
no flags Details
0.9 pre 277 (232.62 KB, application/x-xpinstall)
2012-07-18 09:15, Axel Grude
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2012-07-17 05:48
a variable for the week number of the current year would be a handy addition
------- Comment #1 From Axel Grude 2012-07-17 05:59:14 -------
Request accepted. However it is not quite as trivial as it sounds:

http://www.blackwasp.co.uk/WeekOfYear.aspx

The first day of the first week is not always the first of January, so it is
likely that we will have to come up with more than one variable for this
representing the various trains of thoughts of when the first calendar week is
starting.
------- Comment #2 From Tony Mechelynck 2012-07-17 17:20:43 -------
According to http://en.wikipedia.org/wiki/Week_number#Week_numbering , at least
six systems are in use (of which three are listed there), and the system used
in US and Canada differs from the ISO standard.
------- Comment #3 From Axel Grude 2012-07-18 03:22:00 -------
Created an attachment (id=7316) [details]
Test Version - Pre272

Here is a test version that implements week numbers based on the rules of ISO
8601. Usage: %cwIso(offset)% , where 'offset' represents what you count as
first day of the week, based on the following:
0 - Sunday
1 - Monday
2 - Tuesday
3 - Wednesday
4 - Thursday
5 - Friday
6 - Saturday

so typically, in Europe you would probably use %cwIso(1)%, in Northern America
%cwIso(0)%
------- Comment #4 From MarkyMarkDE 2012-07-18 04:15:06 -------
Test Version - Pre272

this Version don't work for me.
On new messages i get our Prompt window "Cant't be used for new Messages" and
on reply the fields stay empty - german Windows 7
------- Comment #5 From Axel Grude 2012-07-18 09:15:29 -------
Created an attachment (id=7317) [details]
0.9 pre 277

this one should work better in any locale. there was a problem in the
localization function with potential to impact which is now much improved.
localization is now based on Operating System Locale and doesn't try to guess
Application locale.

First Last Prev Next    No search results available