The last minute of the year
Paste a small example into the tool and change one part at a time.
The number still says 1 day, while the clock is down to its last minute. At 00:00 the page switches to its happy new year line.
Days until January 1 and a live clock that hits zero at midnight on New Year's Eve, in your own time zone.
Last updated
New Year's Day 2027
36 days
Friday, January 1, 2027
Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.
Of all the countdowns, New Year is the one where the clock matters most. The page counts down to midnight at the start of January 1 on your device, which is exactly when the year turns. Hours, minutes and seconds tick every second, so you can watch the last minute of December 31 run out.
The big number counts calendar days. On December 31 it says 1 day, and on January 1 the page wishes you a happy new year. Under the number you get the date with its weekday (January 1, 2027 is a Friday, 2028 a Saturday) and the wait in weeks and days.
Midnight moves around the world one time zone at a time, so the year starts in the Pacific first and in the Americas many hours later. The page always follows your device's clock and time zone. It counts to January 1; Lunar New Year has a countdown of its own.
timedelta with its days and seconds, which is all a countdown clock needs.The days to January 1 are there as it loads, with the date and its weekday.
The clock ticks every second and reaches 00:00:00 at midnight on your device.
The countdown is only as right as the clock it reads, so make sure the time is set correctly.
January 1 and the weekday it falls on.
| Year | New Year's Day |
|---|---|
| 2026 | Thursday, January 1 |
| 2027 | Friday, January 1 |
| 2028 | Saturday, January 1 |
| 2029 | Monday, January 1 |
| 2030 | Tuesday, January 1 |
Paste a small example into the tool and change one part at a time.
The number still says 1 day, while the clock is down to its last minute. At 00:00 the page switches to its happy new year line.
Copy the original value, run the tool, then compare the result.
41 days on the big number, 5 weeks, 6 days under it, and 40 days 8 hours 30 minutes on the clock. The clock is lower because it measures time to midnight, not calendar days.
from datetime import datetime
now = datetime(2026, 11, 21, 15, 30)new_year = datetime(now.year + 1, 1, 1)
left = new_year - nowhours, rest = divmod(left.seconds, 3600)print(left.days, "days", hours, "hours", rest // 60, "minutes")print((new_year.date() - now.date()).days, "calendar days")The timedelta gives 40 days and 30,600 seconds, which divmod turns into 8 hours and 30 minutes. Comparing the dates alone gives the 41 calendar days the big number shows.
Yes. It counts to 00:00 on January 1 in your device's time zone, the moment the year changes where you are.
Because one calendar day, January 1, is still ahead. The clock under the number shows the hours actually left.
Yes, January 1, 2028 is a Saturday. January 1, 2027 is a Friday.
In places on UTC+14, such as Kiribati's Line Islands. The last inhabited places to reach midnight are on UTC-11, such as American Samoa.
The count is calendar days, and the clock is the time to midnight as January 1 begins. Until the very end of a day, the clock shows one day fewer plus the hours left.