-
-
Notifications
You must be signed in to change notification settings - Fork 99
Add time parser #3738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add time parser #3738
Conversation
ccc057e
to
aac7549
Compare
710bff1
to
1bbd25e
Compare
ece7294
to
5b69904
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests look good to me. I skimmed through the code and didn't find anything major, so assuming that the tests now pass on macOS this is also ready to go.
52e246e
to
43a61c2
Compare
It seems like libc++ (the stdlib on macOS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks nice!
43a61c2
to
3a1637d
Compare
9fda103
to
243977b
Compare
9ac499f
to
7b37d72
Compare
5484a32
to
ccc38d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works quite well. Thank you!
ccc38d1
to
166e51a
Compare
Closes https://github.com/tenzir/issues/issues/1051
Adds a new parser,
time
, based on POSIXstrptime
.<format>
is a format string compatible withstrptime
. The output is atenzir::time
, except if the--components
flag is passed, the output is a record. There's some additional logic for missing fields and what their default values are, which can be controlled with--strict
.Deals with timezones properly, which letmetellya is something one should not call trivial.