EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Getutcmilliseconds (Date.getutcmilliseconds Method); Getutcminutes (Date.getutcminutes Method)

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals