public class AbsoluteTimeDateFormat extends DateFormat
Date
in the format "HH:mm:ss,SSS" for example, "15:49:37,459".DateFormat.Field
Modifier and Type | Field and Description |
---|---|
static String |
ABS_TIME_DATE_FORMAT
String constant used to specify
AbsoluteTimeDateFormat in layouts. |
static String |
DATE_AND_TIME_DATE_FORMAT
String constant used to specify
DateTimeDateFormat in layouts. |
static String |
ISO8601_DATE_FORMAT
String constant used to specify
ISO8601DateFormat in layouts. |
AM_PM_FIELD, calendar, DATE_FIELD, DAY_OF_WEEK_FIELD, DAY_OF_WEEK_IN_MONTH_FIELD, DAY_OF_YEAR_FIELD, DEFAULT, ERA_FIELD, FULL, HOUR_OF_DAY0_FIELD, HOUR_OF_DAY1_FIELD, HOUR0_FIELD, HOUR1_FIELD, LONG, MEDIUM, MILLISECOND_FIELD, MINUTE_FIELD, MONTH_FIELD, numberFormat, SECOND_FIELD, SHORT, TIMEZONE_FIELD, WEEK_OF_MONTH_FIELD, WEEK_OF_YEAR_FIELD, YEAR_FIELD
Constructor and Description |
---|
AbsoluteTimeDateFormat() |
AbsoluteTimeDateFormat(TimeZone timeZone) |
Modifier and Type | Method and Description |
---|---|
StringBuffer |
format(Date date,
StringBuffer sbuf,
FieldPosition fieldPosition)
Appends to
sbuf the time in the format "HH:mm:ss,SSS" for example, "15:49:37,459" |
Date |
parse(String s,
ParsePosition pos)
Always returns null.
|
clone, equals, format, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, hashCode, isLenient, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZone
format, formatToCharacterIterator, parseObject
public static final String ABS_TIME_DATE_FORMAT
AbsoluteTimeDateFormat
in layouts. Current value is
ABSOLUTE.public static final String DATE_AND_TIME_DATE_FORMAT
DateTimeDateFormat
in layouts. Current value is
DATE.public static final String ISO8601_DATE_FORMAT
ISO8601DateFormat
in layouts. Current value is
ISO8601.public AbsoluteTimeDateFormat()
public AbsoluteTimeDateFormat(TimeZone timeZone)
public StringBuffer format(Date date, StringBuffer sbuf, FieldPosition fieldPosition)
sbuf
the time in the format "HH:mm:ss,SSS" for example, "15:49:37,459"format
in class DateFormat
date
- the date to formatsbuf
- the string buffer to write tofieldPosition
- remains untouchedpublic Date parse(String s, ParsePosition pos)
parse
in class DateFormat
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.