News for hackers. Stuff that matters.
Re:Juvenile or adult? Leap-year suspect poses conundrum for ... by pricechild on Thursday September 13, 2018 @05:48AM (#17977279)
What about in the case of daylight savings? Do you need to add an extra hour?
Re:Juvenile or adult? Leap-year suspect poses conundrum for ... by bonzini on Thursday September 13, 2018 @03:51PM (#17981877)
You can set the ending time at 19:00 or 24:00 or whenever you want, which you have to do even if you base the period on months rather than days.

Daylight savings time switches happen in the middle of the night, IIRC at 2am or 3am.

Re:Juvenile or adult? Leap-year suspect poses conundrum for ... by taejo on Thursday September 13, 2018 @07:24AM (#17977725)
> immediately before the start of the corresponding day

A month ends at the end of a day, regardless of the length of that day or any other day during the month.

Re:Juvenile or adult? Leap-year suspect poses conundrum for ... by pricechild on Thursday September 13, 2018 @09:22AM (#17978382)
The point is... you're now having to make the definition more complex.

The OP's request was to make it simpler.

With time, you often can't do that without edge cases.