E2.14.2midnight-spanning intervaldesign

Spans that cross midnight need an explicit day

Aliases: overnight range · 24:00 ownership · end before start

What it is

“22:00–02:00” is a span that crosses midnight. People ask: is this tonight into tomorrow morning, or is it reversed? Does 2:00 belong to the end date’s dawn or the start date’s afternoon? A midnight-spanning interval nails the span to explicit dates and writes them on the surface. The issue is which calendar day owns each side of the night, not how many minutes a notch is, and not a.m. versus p.m. on a twelve-hour clock.

Why it happens

A day is drawn as a ring from 0 to 24; a span is linear. When the end clock is less than the start clock, the system must decide “add a day” or “the user reversed it.” The digits look the same. Night shifts, flights, and stays also disagree about “includes tonight”: a hotel night usually excludes the checkout day’s daytime; a night shift may include 8:00 the next morning. Without dates beside the clocks, people mentally fill different calendars onto the same numerals. Midnight itself is ambiguous: 24:00 as end of today versus 00:00 as start of tomorrow, one instant with two labels. Typical fallout is a day short, or a shift booked the wrong way around.

Where it stops holding

A span entirely inside one calendar day has no midnight problem; extra dates are noise. All-day events do not use clocks; they use a date range, not a 00:00–24:00 clock model. Time-zone changes move “local midnight”; a spanning interval must name which local day. Recurring shifts (every Friday 22:00 to Saturday 6:00) belong to a weekday rule; a one-shot date control is not enough.

Applying it

  • When the end clock is earlier than the start, label the end as the next day—“22:00 → 02:00 next day”—rather than two bare clocks.
  • Restate the interval in plain language before submit (“10 tonight to 2 tomorrow morning, 4 hours”) so ownership is heard.
  • Separate “reversed” from “legal overnight”: offer an overnight confirmation rather than always erroring that end must be after start.
  • Verify by booking an overnight shift or stay and asking which day the end falls on and how many hours it lasts. A wrong answer or mental date math means ownership is not on the surface. Then check whether 00:00 and 24:00 are treated as the same instant.

Related

  • Within the group: E2.14.1 Time granularity must match what the business actually schedules · E2.14.3 Twelve-hour clocks must mark a.m. and p.m.
  • Adjacent: E2.13 Date pickers · E2.19 Currency, units, and magnitude input
  • Search terms: midnight-spanning interval · overnight range · end before start

Cards in the same group

Quick Actions

Share

Share this page

ios_share

https://hci.top/en/handbook/E2.14.2