Build notes / Aanaadu · Web
A page for every date, including 29 February
Aanaadu is our Telugu history website, with a page for every date of the year. That makes 366 day pages, not 365. The extra page is the easy part. The work is in everything around it that has to treat 29 February honestly in the years that do not have one.
- Sheet
- N · Build note
- Subject
- Aanaadu · Web
- Day pages
- 366
- Rebuilt
- Every night
- Link
- 29 February on aanaadu.com ↗
D-01 The data
One file for each date
Each date's entries live in one data file named by month and day, from 01-01 to 12-31, with 02-29 among them. The site builds one page from each file, so 29 February gets its page the same way every other date does.
Each page also links to the day before and the day after. Those links are worked out on a leap-year calendar, so 28 February leads to 29 February, and 29 February leads to 1 March.
D-02 This year
Claims about this year drop out when the date is not in it
A day page's dateline gives the weekday and the day of the year for the current year, and the nightly rebuild keeps that year current. In a year without 29 February, the page for it leaves out the weekday and the day number, rather than name a day that is not on this year's calendar.
Divisible by 4
Leap
2024 has a 29 February.
Divisible by 100
Not leap
1900 has no 29 February.
Divisible by 400
Leap
2000 has a 29 February.
Day of the year
60 or 61
1 March is day 60 in a common year and day 61 in a leap year.
D-03 Elsewhere
The same rule, in two more places
The birthday view adds a line with your birth date, its weekday and your age only when that birth date existed. 29 February 1984 did. 29 February 1900 did not, so the page shows no birth-date line for it.
The Atom feed lists the latest 14 days by walking back through real calendar dates from today. 29 February appears in it only in a leap year.
Start a project
Tell us what you want to build and which platforms you need, or send the scope you drew. We reply by email.
hi@cr8veworks.com