Days Between Y2K and the Y2038 Problem
Two famous date-related software bugs. Computed below across multiple units; if either date is "today", the page reflects the build date.
January 1, 2000 → January 19, 2038
13,898 days
In Other Units
| Total seconds | 1,200,787,200 |
|---|---|
| Total hours | 333,552 |
| Total days | 13,898 |
| Total weeks | 1985.4 |
| Total months (calendar) | 456 |
| Total years (calendar) | 38 |
How to Calculate This in Code
JavaScript (with day.js)
dayjs('2038-01-19').diff(dayjs('2000-01-01'), 'day')
// 13898
Python
from datetime import date (date(2038, 1, 19) - date(2000, 1, 1)).days # 13898
Bash (GNU date)
echo $(( ($(date -d '2038-01-19' +%s) - $(date -d '2000-01-01' +%s)) / 86400 )) # 13898