Example
The following example creates a new
Date object defined in universal time.
maryBirthday_date
This is the universal time variation of the example used for the
constructor method.
new Date
var maryBirthday_date:Date = new Date(Date.UTC(1974, 7, 12));
trace(maryBirthday_date);
// output will be in local time and will vary accordingly
// for Pacific Daylight Time the output will be seven hours earlier than UTC:
// Sun Aug 11 17:00:00 GMT-0700 1974
286
Chapter 6: ActionScript Core Classes
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?