Skip to content

Reading a datetime string like 2022-04-26T16:49:20.877 UTC #1207

Answered by icambron
glennpierce asked this question in Q&A
Discussion options

You must be logged in to vote

yeah, you want z, not ZZZZ. In formatting, ZZZZ means like "Eastern Standard Time" or "British Summer Time". It can't be parsed though, for reasons explained in the zones documentation:

A named offset is a time zone-specific name for an offset, such as Eastern Daylight Time. It expresses both the zone (America's EST roughly implies America/New_York) and the current offset (EST means -5). They are also confusing in that they overspecify the offset (e.g. for any given time it is unnecessary to specify EST vs EDT; it's always whichever one is right). They are also ambiguous (BST is both British Summer Time and Bangladesh Standard Time), unstandardized, and internationalized (what would a Fr…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@glennpierce
Comment options

Comment options

You must be logged in to vote
1 reply
@glennpierce
Comment options

Answer selected by glennpierce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants