Changes

Jump to navigation Jump to search
subcat
<noinclude>Yesterday was day '''</noinclude>{{#time:z}}<noinclude>''' of '''{{CURRENTYEAR}}.'''
<br>
(Today is day '''{{#expr: {{#time:z}}+1}}.)
<br>
There are '''{{#expr: {{#time:z|{{CURRENTYEAR}}-12-31}}-{{#time:z}}}}''' days remaining.<br>
This template returns yesterday’s day of the year by returning the result of: <nowiki>{{#time:z}}</nowiki>, since January first is counted as day zero. Note that this breaks on the first day of the year, whether the previous year was a leap year or not. A logical operator needs to be added, such that if the current day is "zero", the returned result is 365 or 366 of the previous calendar year. This template added to accompany other Date-comp templates, starting with "PREVIOUS". See the category below.

[[Category:Date-computing templates based on current time|PREVIOUSDOY]]
</noinclude>
Anonymous user

Navigation menu