3 ms·
What about in the case of daylight savings? Do you need to add an extra hour?
by pricechild 8y ago
What about in the case of daylight savings? Do you need to add an extra hour?
- taejo 8y ago> 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.
- pricechild 8y agoThe 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.
- bonzini 8y agoYou 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.