getInstance

Method to get an instance of TimeFormatter

No-any params required

Return

a time formatter instance with the default values as TimeFormatter


open fun getInstance(pattern: String): TimeFormatter

Method to get an instance of TimeFormatter

Return

a time formatter instance with the default values as TimeFormatter

Parameters

pattern

: the pattern for the formatter


open fun getInstance(locale: Locale): TimeFormatter

Method to get an instance of TimeFormatter

Return

a time formatter instance with the default values as TimeFormatter

Parameters

locale

: the locale for the formatter


open fun getInstance(pattern: String, locale: Locale): TimeFormatter

Method to get an instance of TimeFormatter

Return

a time formatter instance with the default values as TimeFormatter

Parameters

pattern

: the pattern for the formatter

locale

: the locale for the formatter