Possible to specify format for parse to have optional Units #2116
Unanswered
efenderbosch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to write a format such a section is optional or can have a range?
I'm trying to parse a local time, which will have the format 'HH:mm:ss' + 0 to 6 'S'
Right now I'm doing this:
But I assume there's a better way.
If not, can I suggest something like
HH:mm:ss.S{0,6}
?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions