gg
Home › Blog › Dates & Time

Dates & Time

Counting days, ages and working hours — where the arithmetic is genuinely ambiguous, and how to say which convention you meant.

All postsMoney & Finance (58)Home & Renting (7)Work & Business (39)Security & Privacy (24)Law & Life Admin (13)Everyday Maths (92)Health & Fitness Numbers (27)Building for the Web (24)Dates & Time (8)Benefits & Support (4)Data & Spreadsheets (22)Care & Communication (10)Bereavement & Preparedness (5)Home, Pets & Family (22)Shared Living & Splitting Up Costs (5)The Tools (36)
Converting a calendar date to a Unix timestamp, by hand
2026-10-16 · 2 min read

A date is a day count in disguise — count the days since 1 January 1970, multiply by 86,400, and you have the same number the tool prints.

datesdevdata
Counting the days to a date, by hand
2026-10-14 · 1 min read

No calendar app needed — subtracting serial day numbers (or adding up the days left in each month) gets you the same answer as a countdown timer.

dateseveryday
Estimating a due date by hand: Naegele's rule
2026-10-13 · 2 min read

Add 280 days to the first day of the last period and you have the standard estimate — here's the arithmetic, a worked example, and why only about 1 in 20 babies actually arrive on that exact day.

healthdatespregnancyeveryday
Four days or five? Inclusive and exclusive date counting
2026-08-27 · 3 min read

How many days from Monday to Friday depends entirely on whether you count both ends. Both answers are correct arithmetic, and the ambiguity is worth naming out loud.

datesmatheverydayplanning
Why your age is not just one date minus another
2026-08-27 · 3 min read

An age in years depends on whether the birthday has already happened this year, and one month after 31 January has no single correct answer. Here is how the calculation actually proceeds.

datesmatheveryday
Working days depend on whose calendar you are using
2026-08-27 · 3 min read

Counting weekdays between two dates is exact arithmetic. Deciding which days are the weekend, and which holidays you observe, is not something any date can tell you.

datesworkplanningeveryday
Time zones are not fixed, and that is why invites slip
2026-08-27 · 4 min read

The difference between two cities' clocks changes during the year, because daylight saving starts and ends on different dates in different places and runs the opposite way south of the equator.

datesworkplanning
A Unix timestamp has no time zone in it
2026-08-28 · 4 min read

It is one integer: seconds since 1970 in UTC. Every time-zone bug and every accidental trip to the year 57971 comes from what happens after that.

datesdataweb