Since the U.S. DST change is coming up this weekend, I thought it would be a good time to remind people about date math in ActionScript.
When working with dates, make sure you don't use milliseconds (UNIX timestamps) to increment/decrement times and dates. Instead, always increment the hours, date and similar properties on Date object.
However, there is a bug in the player currently causing increments to myDate.hours to not do the correct thing. To avoid this problem, use the myDate.hoursUTC property instead.
You can safely add/subtract hours and the Date class will automatically increment the actual underlying date. For example, if the date is 10/27/2008 23:00 and you add an hour, the date will rollover to 10/28/2008 00:00 as expected. The same goes for adding days, months and years.
70e9cdf6-0e3c-42a0-8054-e2dd65e5ce3f|1|1.0