MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 260

Actionscript language reference
Table of Contents

Advertisement

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
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
Date.getDate()
Date.getDay()
Date.getFullYear()
Date.getHours()
Date.getMilliseconds()
Date.getMinutes()
Date.getMonth()
Date.getSeconds()
Date.getTime()
Date.getTimezoneOffset()
Date.getUTCDate()
Date.getUTCDay()
Date.getUTCFullYear()
Date.getUTCHours()
Date.getUTCMilliseconds()
Date.getUTCMinutes()
Date.getUTCMonth()
Date.getUTCSeconds()
Date.getYear()
260
Chapter 6: ActionScript Core Classes
Description
Returns the day of the month according to local time.
Returns the day of the week according to local time.
Returns the four-digit year according to local time.
Returns the hour according to local time.
Returns the milliseconds according to local time.
Returns the minutes according to local time.
Returns the month according to local time.
Returns the seconds according to local time.
Returns the number of milliseconds since midnight January 1, 1970,
universal time.
Returns the difference, in minutes, between the computer's local time
and universal time.
Returns the day of the month according to universal time.
Returns the day of the week according to universal time.
Returns the four-digit year according to universal time.
Returns the hour according to universal time.
Returns the milliseconds according to universal time.
Returns the minutes according to universal time.
Returns the month according to universal time.
Returns the seconds according to universal time.
Returns the year according to local time.
ActionScript Core Classes
method is an exception; it is a
Date.UTC()
CHAPTER 6

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents