I am coding a planning application and am curious how to handle the following limit situation regarding daylight saving time (DST) changes:
Let's say we are in the time zone where DST is:
- Starts at
2014-Mar-9at 2:00:00 AM(clock adjusted forward) - Ends
2014-Nov-2at 2:00:00 AM(clock adjusted backward)
Suppose the end user has scheduled my application for 2014-Nov-2, 2:00:00 AM.
Suppose the local date / time is now 2014-Nov-2, 1:59:99 AM.
When does my application start the schedule - after 1 second or after 1 hour and 1 second?
Is there a standard that defines how to deal with this situation?
source
share