Date and time patterns should follow DateTimeFormatter
#1416
Labels
enhancement
Additions or updates to features
DateTimeFormatter
#1416
In release 2.x date time patterns follow
SimpleDateFormat
with additional extensions provided byFastDateFormat
and support for then
specifier for nanoseconds.The exception is JSON Template Layout, which uses the format specifiers from
DateTimeFormatter
.In release 3.x we should switch all format specifiers to those documented
DateTimeFormatter
.The major differences are:
u
means day-of-week in SDF and era in DTF,L
meaning month as text,q
andQ
as quarter,Z
,ZZ
andZZZ
all mean the same format for the time zone (e.g.-0800
,+0000
). In SDF (Commons Land version)ZZ
uses the ISO 8601 format with a colon (e.g.-08:00
,Z
) andZZZ
adds a colon to the originalZ
format (e.g.-08:00
,+00:00
).The text was updated successfully, but these errors were encountered: