setLongTimeFormat |
Sets the long time format for the corresponding locale
Syntax
localeObject.setLongTimeFormat(format)
Parameters
Parameter |
Description |
---|---|
format |
Required. The long time format. |
Return Value
NA
Example
The following example displays how this method is used.
importType("wcp.library.util.LocaleFormat"); importType("wcp.library.util.Locale"); var localeObject = new Locale(sLocale);//sLocale --> "en-US" localeObject.setLongTimeFormat("hh:mm:ss");//Will set "hh:mm:ss" for locale "en-US"