DateFormat.getTimeInstance
Class Overview | Class Members |
This Package |
All Packages
public static final DateFormat getTimeInstance()
Returns
a time formatter.
Description
Gets the time formatter with the default formatting style
for the default locale.
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.
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.