Getlocaletime (Date.getlocaletime Method); Getmilliseconds (Date.getmilliseconds Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
The following example uses the constructor to create a Date object based on the current time.
It also uses the
getLocaleShortDate()
formatted according to the currently defined locale, as follows:
var my_date:Date = new Date();
trace(my_date.getLocaleShortDate());
The following are sample return values that
10/16/2005
16-10-2005

getLocaleTime (Date.getLocaleTime method)

public getLocaleTime() : String
Returns a string representing the current time, formatted according to the currently defined
locale.
Note: The format of the date depends on the mobile device and the locale.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
- A string representing the current time, formatted according to the currently defined
String
locale.
Example
The following example uses the constructor to create a Date object based on the current time.
It also uses the
getLocaleTime()
var my_date:Date = new Date();
trace(my_date.getLocaleTime());
The following are sample return values that
6:10:44 PM
18:10:44

getMilliseconds (Date.getMilliseconds method)

public getMilliseconds() : Number
Returns the milliseconds (an integer from 0 to 999) of the specified Date object, according to
local time. Local time is determined by the operating system on which Flash Player is
running.
Availability: ActionScript 1.0; Flash Lite 2.0
method to return the current date, in short form,
getLocaleLongDate()
method to return the time of the current locale, as follows:
getLocaleTime()
returns:
returns:
Date
335

Advertisement

Table of Contents
loading

Table of Contents