We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I expected the second one to give a negative duration.
pi@pi0w:~/bin $ dateutils.ddiff 2024-09-26T18:00:00-05:00 2024-09-26T19:33:07-0500 -f '%Y years %m months %w weeks %d days %H hours %M minutes %S seconds' 0 years 0 months 0 weeks 0 days 1 hours 33 minutes 7 seconds
pi@pi0w:~/bin $ dateutils.ddiff 2024-09-26T19:33:07-0500 2024-09-26T18:00:00-0500 -f '%Y years %m months %w weeks %d days %H hours %M minutes %S seconds' 0 years 0 months 0 weeks 0 days 1 hours 33 minutes 7 seconds
The text was updated successfully, but these errors were encountered:
Although, if I remove the time zone portion, it works as expected:
pi@pi0w:~/bin $ dateutils.ddiff 2024-09-26T18:00:000 2024-09-26T19:33:07 -f '%Y years %m months %w weeks %d days %H hours %M minutes %S seconds' 0 years 0 months 0 weeks 0 days 1 hours 33 minutes 7 seconds
pi@pi0w:~/bin $ dateutils.ddiff 2024-09-26T19:33:07 2024-09-26T18:00:00 -f '%Y years %m months %w weeks %d days %H hours %M minutes %S seconds' -0 years 0 months 0 weeks 0 days 1 hours 33 minutes 7 seconds
Sorry, something went wrong.
Hi, thanks for the report, very difficult to spot. A fix should be in 00a29db which can be applied to any of the 0.4.x releases.
No branches or pull requests
I expected the second one to give a negative duration.
The text was updated successfully, but these errors were encountered: