![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 334](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553334.webp)
334
ActionScript classes
getLocaleLongDate (Date.getLocaleLongDate
method)
public getLocaleLongDate() : String
Returns a string representing the current date, in long form, 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
String
- A string representing the current date, in long form, formatted according to the
currently defined locale.
Example
The following example uses the constructor to create a Date object based on the current time.
It also uses the
getLocaleLongDate()
method to return the current date, in long form,
formatted according to the currently defined locale, as follows:
var my_date:Date = new Date();
trace(my_date.getLocaleLongDate());
The following are sample return values that
getLocaleLongDate()
returns:
October 16, 2005
16 October 2005
getLocaleShortDate (Date.getLocaleShortDate
method)
public getLocaleShortDate() : String
Returns a string representing the current date, in short form, 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
String
- A string representing the current date, in short form, formatted according to the
currently defined locale.
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...