Template:TodayLetter
From NovaRoma
(Difference between revisions)
(make it return correctly on leap year) |
m (typo) |
||
Line 18: | Line 18: | ||
"#time z" is DOY counting from 0. | "#time z" is DOY counting from 0. | ||
*Feb 25 is day #55 in this system. | *Feb 25 is day #55 in this system. | ||
− | *Feb 29/Mar 1 is day 59 in this system. | + | *Feb 29 (leap year)/Mar 1 (not leap year) is day #59 in this system. |
− | For this span of days, the template uses brute force, selecting a letter based on the value returned by | + | For this span of days, the template uses brute force, selecting a letter based on the value returned by [[Template:IsLeapYear]] |
− | [[Template: | + | |
[[Category:Date templates]] | [[Category:Date templates]] | ||
</noinclude> | </noinclude> |
Revision as of 03:37, 12 January 2008
G
Usage
{{TodayLetter}}
Returns the nundinal letter for today. Adjusts for leap year.
Notes
"#time z" is DOY counting from 0.
- Feb 25 is day #55 in this system.
- Feb 29 (leap year)/Mar 1 (not leap year) is day #59 in this system.
For this span of days, the template uses brute force, selecting a letter based on the value returned by Template:IsLeapYear