dateutils icon indicating copy to clipboard operation
dateutils copied to clipboard

v0.4.8, datediff, Wrong Result

Open devjev opened this issue 3 years ago • 1 comments

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.

devjev avatar May 27 '21 10:05 devjev

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.

hroptatyr avatar May 27 '21 11:05 hroptatyr