Macromedia flash mx professional 2004-macromedia flash lite 1.1 authoring guidelines Benutzerhandbuch

Seite von 86
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).