Hacker News new | past | comments | ask | show | jobs | submit login

As a range or interval specifier, many (most?) non-programmers will assume the interpretation of “midnight” that favours them in any subsequent dispute.

In practice this often means that “from midnight on Monday to midnight on Tuesday” is a 48-hour interval so far as consumers are concerned. I recommend advertising things like cut-off times as “11:59pm” and friends, when possible.

Also, my time formatter turns “12:00” into “12 noon” following weary experience of people who confuse 12:00 with midnight.




> In practice this often means that "from midnight on Monday to midnight on Tuesday" is a 48-hour interval so far as consumers are concerned.

I generally insist on midnight being 0:00 or 24:00 for much the same reasons.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: