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

v0.4.8, datediff, Wrong Result #127

Open
devjev opened this issue May 27, 2021 · 1 comment
Open

v0.4.8, datediff, Wrong Result #127

devjev opened this issue May 27, 2021 · 1 comment

Comments

@devjev
Copy link

devjev commented May 27, 2021

Hi everyone,

just noticed this oddity in datediff:

$ datediff 14:14 16:47
9180s

The correct answer is 153 seconds. Which is incidentally 9180 divided by 60. So it seems that conversion to seconds happens twice in this case.

@hroptatyr
Copy link
Owner

Hi, thanks for the report.

Let me point out that 14:14 is read as 14:14:00, and similarly 16:47 is read as 16:47:00, i.e. seconds have been omitted in both cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants