public class CustomJBDateTimeFormatter extends JBDateTimeFormatter
Constructor and Description |
---|
CustomJBDateTimeFormatter(java.lang.String pattern,
boolean use24hour) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatDate(long time) |
java.lang.String |
formatDateTime(java.util.Date date) |
java.lang.String |
formatDateTime(long time) |
java.lang.String |
formatPrettyDate(java.util.Date date) |
java.lang.String |
formatPrettyDate(long time) |
java.lang.String |
formatPrettyDateTime(java.util.Date date) |
java.lang.String |
formatPrettyDateTime(long time) |
java.lang.String |
formatTime(long time) |
java.lang.String |
formatTimeWithSeconds(long time) |
protected java.text.DateFormat |
getDateTimeFormat() |
protected java.text.DateFormat |
getDateTimeSecondsFormat() |
protected java.text.DateFormat |
getFormat() |
protected boolean |
isPrettyFormattingSupported() |
formatDate, formatTime, formatTimeWithSeconds
public CustomJBDateTimeFormatter(java.lang.String pattern, boolean use24hour)
protected java.text.DateFormat getFormat()
protected java.text.DateFormat getDateTimeFormat()
protected java.text.DateFormat getDateTimeSecondsFormat()
protected boolean isPrettyFormattingSupported()
isPrettyFormattingSupported
in class JBDateTimeFormatter
public java.lang.String formatTime(long time)
formatTime
in class JBDateTimeFormatter
public java.lang.String formatTimeWithSeconds(long time)
formatTimeWithSeconds
in class JBDateTimeFormatter
public java.lang.String formatDate(long time)
formatDate
in class JBDateTimeFormatter
public java.lang.String formatPrettyDateTime(long time)
formatPrettyDateTime
in class JBDateTimeFormatter
public java.lang.String formatPrettyDate(long time)
formatPrettyDate
in class JBDateTimeFormatter
public java.lang.String formatDateTime(java.util.Date date)
formatDateTime
in class JBDateTimeFormatter
public java.lang.String formatDateTime(long time)
formatDateTime
in class JBDateTimeFormatter
public java.lang.String formatPrettyDateTime(java.util.Date date)
formatPrettyDateTime
in class JBDateTimeFormatter
public java.lang.String formatPrettyDate(java.util.Date date)
formatPrettyDate
in class JBDateTimeFormatter