Template:PREVIOUSDOY

From Safer nicotine wiki

Yesterday was day 290 of 2021.
(Today is day 291.)
There are 74 days remaining.
This template returns yesterday’s day of the year by returning the result of: {{#time:z}}, 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.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.