Date
341
Example
The following example creates a new Date object and uses
Date.getUTCHours()
and
Date.getHours()
. The value returned by
Date.getUTCHours()
may differ from the value
returned by
Date.getHours(),
depending on the relationship between your local time zone
and universal time.
var today_date:Date = new Date();
trace(today_date.getHours()); // display based on local timezone
trace(today_date.getUTCHours()); // display equals getHours() plus or minus
12
See also
getHours (Date.getHours method)
getUTCMilliseconds (Date.getUTCMilliseconds
method)
public getUTCMilliseconds() : Number
Returns the milliseconds (an integer from 0 to 999) of the specified Date object, according to
universal time.
Availability:
ActionScript 1.0; Flash Lite 2.0
Returns
Number
- An integer.
Example
The following example creates a new Date object and uses
getUTCMilliseconds()
to return
the milliseconds value from the Date object.
var today_date:Date = new Date();
trace(today_date.getUTCMilliseconds());
getUTCMinutes (Date.getUTCMinutes method)
public getUTCMinutes() : Number
Returns the minutes (an integer from 0 to 59) of the specified Date object, according to
universal time.
Availability:
ActionScript 1.0; Flash Lite 2.0
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...