DateTimeInterval.normalizeTimezone Method
Gets a date modified if necessary so that the milliseconds value of each represents a difference in time
between the two dates ignoring any time zone difference.
This method is static.
Parameters
- fromDate
-
Type: Date
A date whose time zone will be used to modify toDate.
- toDate
-
Type: Date
A date whose time zone will be modified if necessary based on fromDate.
Return Value
Type: Date
The modified value of toDate if necessary, otherwise toDate.
Remarks
For example, if the dates are both midnight but in different time zones, one date will be offset by the difference
in time zones so that the difference between the dates in milliseconds is the same as it would be if the dates were in the
same time zone.