260
Chapter 6: ActionScript Core Classes
Date class
Availability
Flash Player 5.
Description
The Date class lets you retrieve date and time values relative to universal time (Greenwich Mean
Time, now called universal time or UTC) or relative to the operating system on which Flash
Player is running. The methods of the Date class are not static but apply only to the individual
Date object specified when the method is called. The
Date.UTC()
method is an exception; it is a
static method.
Flash Player handles daylight saving time on the following operating systems in these ways:
To call the methods of the Date class, you must first create a Date object using the constructor for
the Date class, described later in this section.
Method summary for the Date class
Method
Description
Date.getDate()
Returns the day of the month according to local time.
Date.getDay()
Returns the day of the week according to local time.
Date.getFullYear()
Returns the four-digit year according to local time.
Date.getHours()
Returns the hour according to local time.
Date.getMilliseconds()
Returns the milliseconds according to local time.
Date.getMinutes()
Returns the minutes according to local time.
Date.getMonth()
Returns the month according to local time.
Date.getSeconds()
Returns the seconds according to local time.
Date.getTime()
Returns the number of milliseconds since midnight January 1, 1970,
universal time.
Date.getTimezoneOffset()
Returns the difference, in minutes, between the computer’s local time
and universal time.
Date.getUTCDate()
Returns the day of the month according to universal time.
Date.getUTCDay()
Returns the day of the week according to universal time.
Date.getUTCFullYear()
Returns the four-digit year according to universal time.
Date.getUTCHours()
Returns the hour according to universal time.
Date.getUTCMilliseconds()
Returns the milliseconds according to universal time.
Date.getUTCMinutes()
Returns the minutes according to universal time.
Date.getUTCMonth()
Returns the month according to universal time.
Date.getUTCSeconds()
Returns the seconds according to universal time.
Date.getYear()
Returns the year according to local time.
CHAPTER 6
ActionScript Core Classes
Summary of Contents for FLEX-FLEX ACTIONSCRIPT LANGUAGE
Page 1: ...Flex ActionScript Language Reference...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Page 135: ...case 135 See also break default strict equality switch...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Page 808: ...808 Chapter 7 ActionScript for Flash...
Page 810: ...810 Appendix A Deprecated Flash 4 operators...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Page 822: ...822 Index...