Difference between revisions of "Template:Dayoffset"
(New page: {{{{{subst|}}}JULIANDAY.DAY|{{{{{subst|}}}YMD2MJD|subst={{{subst|}}}}}+2400000.5+{{{1|+0.5}}}|subst={{{subst|}}}}}<noinclude> ---- ;This template calculates the day of the month that will...) |
(<noinclude>Category:Calendar templates</noinclude>) |
||
| Line 33: | Line 33: | ||
|} | |} | ||
</noinclude> | </noinclude> | ||
| + | <noinclude>[[Category:Calendar templates|Dayoffset]]</noinclude> | ||
Latest revision as of 06:19, April 9, 2008
4
- This template calculates the day of the month that will result from a given positive or negative offset in days. The value used for today in the examples is
- Template:Evdn
Examples:
| English | Template | Result |
|---|---|---|
| Today - 30 | {{ day from day offset|-30}} </td><td> Template:Day from day offset
| |
| Today + 2 | {{ day from day offset|2}} </td><td> Template:Day from day offset
| |
| Today + 30 | {{ day from day offset|30}} </td><td> Template:Day from day offset
|
Combination with
| English | Template | Result |
|---|---|---|
| Today - 30 | {{monthoffset|-30}} {{dayoffset|-30}} | January
5
|
| Today + 2 | {{monthoffset|2}} {{dayoffset|2}} | February
6
|
| Today + 30 | {{monthoffset|30}} {{dayoffset|30}} | February
6
|