Skip to content
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

Use jq's floor to round timestamp #87

Open
bewuethr opened this issue Dec 27, 2021 · 0 comments
Open

Use jq's floor to round timestamp #87

bewuethr opened this issue Dec 27, 2021 · 0 comments
Labels
cosmetic Things that aren't even bugs

Comments

@bewuethr
Copy link
Owner

Instead of

.messages.matches[0].ts |
if test("[.]") then
    split(".")[0]
else
    .
end

we should be able to use floor (have to make sure the input is treated as a number, though).

@bewuethr bewuethr added the cosmetic Things that aren't even bugs label Dec 27, 2021
@bewuethr bewuethr changed the title use jq's floor to round timestamp Use jq's floor to round timestamp Dec 27, 2021
@bewuethr bewuethr moved this to Todo 📝 in Hobbyist activities Dec 27, 2021
@bewuethr bewuethr removed the status in Hobbyist activities Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmetic Things that aren't even bugs
Projects
Status: No status
Development

No branches or pull requests

1 participant