Skip to content

OffsetDateTime::parse -> format question #470

Closed Answered by jhpratt
kgrodzicki asked this question in Question
Discussion options

You must be logged in to vote

The OffsetDateTime struct doesn't know how many digits were parsed; formatting and parsing are two separate operations. When formatting, the fewest number of digits necessary is used. In this case that is two.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kgrodzicki
Comment options

@jhpratt
Comment options

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