-
Notifications
You must be signed in to change notification settings - Fork 42
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
Rules differ #153
Comments
Hi, thanks for the report. You're right, looks like a bug. |
Hello, I found some more bugs related to C-code datediff in my testing logs. Below are four errs. Results following sh means results from my datediff script and dd results are C-code datediff. Don't really know if these bugs are related to a single incomplete rule or more in C-code datediff.
I am not able to read C code well enough to understand all the component May I ask if you wrote all the internal libs or have them imported from |
* bug/153: test, PEBKAC, result has 2 spaces fix, recheck for negative day difference after adding Feb days, fixes issue #153 test, add regression case
Hiya, they should all be fixed now. Stupid mistake on my side. |
OK, thanks anyways for never fully answering a question from myself about this weyrd calendrical calculations we have our paws on.. I admire anyone whoever has got mathematical skills, I have got none whatsoever but it was a good journey, anywho mate good bye I will cancel this issue, hopefully you guys have lots of people to talk about calendrical calculations in your nucleaus |
Oh what question was that then? It was indeed me who wrote all the internals, dateutils does not depend on libc (well it does for I/O) |
Summary: v0.4.11 of dateutils Keywords: v0.4.11 This is dateutils v0.4.11. This is a bugfix release. Bugfixes: - be strict about inputs in datetest --isvalid (hroptatyr#146) - build on Macs again (hroptatyr#107) - make illegible zone names fatal errors (hroptatyr#151) - be strict in datetest --isvalid when inputs have been specified (hroptatyr#146) - fix issue with negative days remaining after adding months in datediff (hroptatyr#153) See info page examples and/or README. # -----BEGIN PGP SIGNATURE----- # Version: GnuPG v2 # # iEYEABECAAYFAmWyMssACgkQlMmhrILJOQ4F0wCfbiWQfuERz79Mq+BNlyOw0tL6 # RkoAoItx9dPdr/1inKBukpq2McZK2QrF # =upNa # -----END PGP SIGNATURE----- # gpg: Signature made Thu Jan 25 11:07:07 2024 WEST # gpg: using DSA key 94C9A1AC82C9390E # gpg: Can't check signature: No public key
The following input:
(may be UTC...)
Gives different results from my script:
Yours give:
(cmd:
datediff -f'%Y %m %w %d %H %M %S'
)While my datediff.sh script correctly gives the answer:
In that Y stands for years, M for months, W for weeks, D for days, h for hours, m for minutes, and s for seconds.
Isn't something weyrd?
The text was updated successfully, but these errors were encountered: