pp108 : getShortTimeFormat

getShortTimeFormat


Returns the short time format for the corresponding locale

Syntax

localeObject.getShortTimeFormat()

Parameters

NA

Return Value


Returns short time format

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.getShortTimeFormat();//Will return "h:mm tt" for locale "en-US"

See Also


Locale, Locales