datetimeformatter: DateTimeFormatter cheat sheet module (pattern letters incl. the four hour letters, yyyy vs YYYY week-year bug and WeekFields, en_IN locales and the U+202F AM/PM trap with parseLenient fix, SMART/STRICT/LENIENT parsing, ISO constants, SimpleDateFormat thread safety), 18 contract tests
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b3fvyFpxThdRxcozLx
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
moment = 2026-12-29T01:17:05.123+05:30[Asia/Kolkata]
|
||||
|
||||
ISO_LOCAL_DATE 2026-12-29
|
||||
ISO_LOCAL_TIME 01:17:05.123
|
||||
ISO_LOCAL_DATE_TIME 2026-12-29T01:17:05.123
|
||||
ISO_OFFSET_DATE_TIME 2026-12-29T01:17:05.123+05:30
|
||||
ISO_ZONED_DATE_TIME 2026-12-29T01:17:05.123+05:30[Asia/Kolkata]
|
||||
ISO_INSTANT 2026-12-28T19:47:05.123Z
|
||||
ISO_DATE_TIME 2026-12-29T01:17:05.123+05:30[Asia/Kolkata]
|
||||
ISO_ORDINAL_DATE 2026-363+05:30
|
||||
ISO_WEEK_DATE 2026-W53-2+05:30
|
||||
BASIC_ISO_DATE 20261229+0530
|
||||
RFC_1123_DATE_TIME Tue, 29 Dec 2026 01:17:05 +0530
|
||||
|
||||
== ISO_INSTANT on a ZonedDateTime converts to UTC ==
|
||||
2026-12-28T19:47:05.123Z
|
||||
|
||||
== toString() is already ISO for the java.time types ==
|
||||
2026-12-29 | 01:17:05.123 | 2026-12-29T01:17:05.123+05:30
|
||||
Reference in New Issue
Block a user