public final class TimeFormatter extends AbstractCellFormatter
DateTimeFormatter.EMPTY, OX, QUERY, SLASH, SPACE, UNDERSCORE| Constructor and Description |
|---|
TimeFormatter()
Constructs a time formatter that uses the default locale and timezone.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
nonNullFormat(java.lang.Object value)
Formats the specified value into a string appropriate for displaying
in a table cell.
|
TimeFormatter |
withLocale(java.util.Locale locale)
Sets the locale to use for formatting the time.
|
TimeFormatter |
withZone(org.joda.time.DateTimeZone zone)
Deprecated.
in 1.12.0
|
TimeFormatter |
withZone(java.time.ZoneId zone)
Sets the time zone to use for formatting the time.
|
formatpublic TimeFormatter()
public TimeFormatter withLocale(java.util.Locale locale)
locale - locale to use for formattingpublic TimeFormatter withZone(java.time.ZoneId zone)
zone - time zone to use@Deprecated public TimeFormatter withZone(org.joda.time.DateTimeZone zone)
zone - time zone to useprotected java.lang.String nonNullFormat(java.lang.Object value)
AbstractCellFormatternonNullFormat in class AbstractCellFormattervalue - the value