The local clock changes from (standard time) to (saving time). Attempting to create an invalid time currently causes a fatal error. This class method can be used to construct a new Date Time object from an epoch time instead of components. For example, June 9, 2003 is the second Monday of the month, and so this method returns 2 for that day. By default, the values are separated by a dash (-), but this can be overridden by passing a value to the method. Also available as Returns information about the calendar week which contains this datetime object.
For example, in the US in 2003, the transition from to saving to standard time occurred on October 26, at local time.
The local clock changed from (saving time) to (standard time).
This means that the hour from through actually occurs twice, though the UTC time continues to move forward.
If you specify an ambiguous time, then the latest UTC time is always used, in effect always choosing standard time. Returns the second, as a real number from 0.0 until 61.999999999 The values 60 and 61 are used for leap seconds.
In this case, you can simply subtract an hour to the object in order to move to saving time, for example: method to change the time zone. Returns the appropriate localized abbreviation, depending on the current hour. Returns the fractional part of the second as milliseconds (1E-3 seconds). This value will always be rounded down to the nearest integer.
This is a good way to ensure that the time is not ambiguous. Returns the fractional part of the second as microseconds (1E-6 seconds). This value will always be rounded down to the nearest integer.
Another problem introduced by Daylight Saving Time is that certain local times just do not exist. Returns the fractional part of the second as nanoseconds (1E-9 seconds). Returns the hour, minute, and second, all zero-padded to two digits.
For example, in the US in 2003, the transition from standard to saving time occurred on April 6, at the change to local time. Returns a number from 1..5 indicating which week day of the month this is. If no separator is specified, a colon (:) is used by default.
Invalid parameter types (like an array reference) will cause the constructor to die.