Last modified: 2014-07-07 12:00:59 UTC
Hello, ( my first bug report, french wikipedia) I tryed to use the {{CURRENTDOW}} variable for an article about... ...the ISO 8601 date normalisation ! and I found this variable was not ISO normalised :-( It's supposed to gives the day of the week. And usually, in computers, the 0 is given for sundays and so on (1=monday, etc.) But the international ISO says monday=1 up to sunday =7 (and not 0) in computers, the zero was ok because 7=0[mod7] (mathematics) but for display it's wrong I think in Wikipedia, the ISO norm should be displayed (because if someone try to use it, this will be required I suppose) For the moment, I made a CurrentDowISO Templates (with a case inside) wich gives the "right" day number to me. But I still suggest to change the actual definition of CURRENTDOW (with a if then else) to change this 0 value to 7. (before it will be used by many people) All for a better Wiki. Thank you. (Beyond: Merry Xmas !) David.
What's the purpose of changing it? What would this accomplish?
(In reply to comment #1) > What's the purpose of changing it? What would this accomplish? Be sure a lot of countries start the week with monday (not sunday) and then expect sunday to be = 7. Only some countries (US for example) and programmers have 0 and sunday for first day. Programmers : it's because 0 = 7 modulo 7 so it works fine in progs whatever the country is. If you assume it may be used, it will be to write the number of the day. And there's a normalized (international, US included) way to write this number. So, it may be better to return it in the normalized way. I also use it in an article on Wiki. I'd return the question : if you think the non-normalized way may be used (because US, because programmers), so, suggest to have 2 possibilities. USUALCurrentDow and ISOCurrentDow for example. Was it really such a stupid idea to have the normalized way ?!? Note: the suggestion may be extanded to CurrentDay (just what we said) CurrentWeek ( 01, 02... the actual gives 1, 2 on one digit only, the same norm says 2 digits always) CurrentDay ( same) for each of them a USUAL (maybe) and ISO (at least) version should be accessible...
This is easily accomplished via templates; see http://uncyclopedia.org/wiki/Template:Dow
No, please, You, do read my message...