Open main menu

Template:PREVIOUSDOY

Revision as of 01:05, 15 January 2011 by 134.253.26.4 (talk) (subcat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Yesterday was day 138 of 2024.
(Today is day 139.)
There are 227 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.