← All datasets

Shortest Day

The shortest day of the year, measured for 68 US cities in one free CSV download: daylight on the 2026 winter solstice (December 21) and summer solstice, one row per city, computed directly from NOAA's solar position equations (public domain), which makes this dataset exactly reproducible from its own scraper with no scraping at all. Rows carry latitude and longitude, winter and summer day length in h:mm and minutes, local clock sunrise and sunset for both solstices (standard time in December, daylight time in June, and Arizona's refusal to spring forward shows), the daylight swing between solstices, and the two dates almost nobody can explain: the earliest sunset lands in early December and the latest sunrise in early January, on both sides of the shortest day, in every city, pinned by test. The range is the hook: Fairbanks gets 3 hours 42 minutes of sun and swings more than 17 hours across the year, Seattle stays under 8 and a half hours, Miami keeps nearly 10 and three quarters, and Honolulu barely notices with a swing under 3 hours. The swing climbs with latitude in near-perfect rank order, a one-variable regression begging to be plotted. Joins the city weather cluster (Frost Dates, First Snow, White Christmas) on City. Nine acceptance tests, one enforcing the 25 percent fill rule on every column.
68 rows 1 file last pulled 2026-11-24
Where would you start?
Pick a question, or ask your own and answer it; publish what you find as an insight. The same question can carry many insights from different angles.
  • Plot daylight swing against latitude: how close to perfectly linear is it?
  • Why does the earliest sunset come before the solstice? Show the gap by city.
  • Which cities have the most brutal winter sunset times for commuters?
Shortest Day 68 rows × 15 columns
CityStateLatitudeLongitudeWinter_Day_LengthWinter_Day_MinutesWinter_SunriseWinter_SunsetSummer_Day_LengthSummer_Day_MinutesSummer_SunriseSummer_SunsetDaylight_Swing_MinutesEarliest_Sunset_DateLatest_Sunrise_Date

Questions and answers

What is the Shortest Day dataset?

The shortest day of the year, measured for 68 US cities in one free CSV download: daylight on the 2026 winter solstice (December 21) and summer solstice, one row per city, computed directly from NOAA's solar position equations (public domain), which makes this dataset exactly reproducible from its own scraper with no scraping at all. Rows carry latitude and longitude, winter and summer day length in h:mm and minutes, local clock sunrise and sunset for both solstices (standard time in December, daylight time in June, and Arizona's refusal to spring forward shows), the daylight swing between solstices, and the two dates almost nobody can explain: the earliest sunset lands in early December and the latest sunrise in early January, on both sides of the shortest day, in every city, pinned by test. The range is the hook: Fairbanks gets 3 hours 42 minutes of sun and swings more than 17 hours across the year, Seattle stays under 8 and a half hours, Miami keeps nearly 10 and three quarters, and Honolulu barely notices with a swing under 3 hours. The swing climbs with latitude in near-perfect rank order, a one-variable regression begging to be plotted. Joins the city weather cluster (Frost Dates, First Snow, White Christmas) on City. Nine acceptance tests, one enforcing the 25 percent fill rule on every column.

How big is the Shortest Day dataset?

68 rows in one CSV file, with 15 columns in total: City, State, Latitude, Longitude, Winter_Day_Length, Winter_Day_Minutes, Winter_Sunrise, Winter_Sunset, Summer_Day_Length, Summer_Day_Minutes, Summer_Sunrise, Summer_Sunset, Daylight_Swing_Minutes, Earliest_Sunset_Date, Latest_Sunrise_Date.

Where does the data come from?

It is built by programmatically scraping gml.noaa.gov, last pulled on 2026-11-24. Datasets are versioned; older versions stay downloadable.

Is the dataset free to download?

Yes. Every CodeSights dataset is completely free as a CSV download; a free account is all it takes. Anyone can preview the data without signing in.

Can I see the code that built this dataset?

Yes. The exact Python scraper that built it is viewable on the dataset page by any signed-in member, so every number is reproducible.

Can the data contain errors?

Automated scraping leaves room for error and the underlying sources change over time, so no version is guaranteed accurate or complete. If a number matters, verify it against the original source.

Browse every free dataset on CodeSights