DateFormat.getTimeInstance

DateFormat.getTimeInstance

Class Overview | Class Members | This Package | All Packages

Syntax 1
public static final DateFormat getTimeInstance()
Returns
a time formatter.
Description
Gets the time formatter with the default formatting style for the default locale.



Syntax 2
public static final DateFormat getTimeInstance( int style )
Parameters
style
the given formatting style. For example, SHORT for "h:mm a" in the US locale.
Returns
a time formatter.
Description
Gets the time formatter with the given formatting style for the default locale.



Syntax 3
public static final DateFormat getTimeInstance( int style, Locale aLocale )
Parameters
style
the given formatting style. For example, SHORT for "h:mm a" in the US locale.
inLocale
the given locale.
Returns
a time formatter.
Description
Gets the time formatter with the given formatting style for the given locale.