public class RFC3339DateFormat
extends com.fasterxml.jackson.databind.util.StdDateFormat
Swagger uses RFC3339 formats for date. By default, Jackson’s StdDateFormatter will use a format that is not exactly compatible (ex, uses hour offsets instead of ‘Z’).
Leave deserialization alone, only take over serialization.
DateFormat.Field
_lenient, _locale, _timezone, ALL_FORMATS, CALENDAR, DATE_FORMAT_RFC1123, DATE_FORMAT_STR_ISO8601, DATE_FORMAT_STR_PLAIN, DATE_FORMAT_STR_RFC1123, DEFAULT_LOCALE, DEFAULT_TIMEZONE, instance, PATTERN_ISO8601, PATTERN_PLAIN, PATTERN_PLAIN_STR
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
Modifier and Type | Method and Description |
---|---|
RFC3339DateFormat |
clone() |
StringBuffer |
format(Date date,
StringBuffer toAppendTo,
FieldPosition fieldPosition) |
static String |
formatRfc3339(Date date,
boolean includeMillis) |
_clearFormats, _equals, _format, _formatBCEYear, _getCalendar, _parseAsISO8601, _parseDate, equals, getDefaultTimeZone, getISO8601Format, getRFC1123Format, getTimeZone, hashCode, isColonIncludedInTimeZone, isLenient, looksLikeISO8601, parse, parse, parseAsISO8601, parseAsRFC1123, setLenient, setTimeZone, toPattern, toString, withColonInTimeZone, withLenient, withLocale, withTimeZone
format, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, parseObject, setCalendar, setNumberFormat
format, formatToCharacterIterator, parseObject
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)
format
in class com.fasterxml.jackson.databind.util.StdDateFormat
public RFC3339DateFormat clone()
clone
in class com.fasterxml.jackson.databind.util.StdDateFormat
Copyright © 2016–2022. All rights reserved.