Platform integration commands
37
GetLocaleTime()
The
GetLocaleTime()
function sets a parameter to a string representing the current time,
formatted according to the currently defined locale. The parameter is passed in by name. The
value returned is a multiple-character, variable-length string. The actual formatting depends on
the mobile phone and the locale.
The
GetLocaleTime()
function is executed immediately upon invocation. If this function is not
supported, a value of -1 is returned.
Syntax
status = FSCommand2( "GetLocalTime”, "time” )
Return value
A value of -1 if the function is not supported; 0 if it’s supported.
Sample resultant values for
time
:
6:10:44 PM
18:10:44
GetTimeHours()
The
GetTimeHours()
function returns the hour of the current time of day, based on a 24-hour
clock. It is a numeric value (without a leading zero). Valid hours are 0–23.
The
GetTimeHours()
function is executed immediately upon invocation. If this function is not
supported, a value of -1 is returned.
Syntax
status = FSCommand2( "GetTimeHours” )
Return value
A value of -1 if the function is not supported; otherwise, the current hour, returned as a
number (0-23).
GetTimeMinutes()
The
GetTimeMinutes()
function returns the minute of the current time of day. It is a numeric
value (without a leading zero). Valid minutes are 0–59.
The
GetTimeMinutes()
function is executed immediately upon invocation. If this function is
not supported, a value of -1 is returned.
Syntax
status = FSCommand2( "GetTimeMinutes” )
Return value
A value of -1 if the function is not supported; otherwise, the current minute, returned as a
number (0-59).
Содержание FLASH MX PROFESSIONAL 2004 - FLASH LITE 1.1...
Страница 1: ...Macromedia Flash Lite 1 1 Authoring Guidelines...
Страница 6: ...6 Contents...
Страница 10: ...10 Chapter 1 Introduction...
Страница 20: ...20 Chapter 2 Optimizing Content...
Страница 56: ...56 Chapter 7 Testing Content...
Страница 58: ...58 Chapter 8 Development Kit Examples...
Страница 74: ...74 Appendix B Supported ActionScript Properties...