public class SimpleTimeLabelFormat extends Object implements TimeLabelFormat
strftime. For more details on the supported
conversions see the Date/Time Conversions section for Formatter. Examples:
%Y-%m-%dT%H:%M:%S
yyyy'-'MM'-'dd'T'HH':'mm':'ss
| Constructor and Description |
|---|
SimpleTimeLabelFormat(String format)
Create a new instance using a format string that is either an strftime patter or a simple
date format pattern.
|
| Modifier and Type | Method and Description |
|---|---|
String |
format(Calendar calendar,
Locale locale)
Format a timestamp.
|
public SimpleTimeLabelFormat(String format)
format - public String format(Calendar calendar, Locale locale)
TimeLabelFormatformat in interface TimeLabelFormatcalendar - calendar to use for the formatterlocale - locale that will be used with String.format