-
Notifications
You must be signed in to change notification settings - Fork 115
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
Jiffy difference #57
Comments
Hi, @rakakhrl . I have tried this and it works fine. I tried the following
and also
Or maybe I haven't understood your question correctly |
@rakakhrl I understood your issue. The docs shows the wrong output on the section you have said. it's supposed to be both to have the same year which is 2017
You could send a PR to fix it if you would like to contribute |
Why does this output 0, shouldn't it be 1? This is the only day that shows 0, for example this one is correct, outputs 1: |
Also local time now has 1 hour difference |
@jaykovski I have tried both And they both return correct results which should be If you would like to return
I also tried on Or have I not understood your question? |
The and
|
Hint: there was a daylight saving time on 29th |
@jaykovski This may be related to #81, so I will close this issue for now since the docs have been corrected in difference |
Hey jama, i just want to ask one question about the difference method. In the documentation u said that when we look for difference from this
Jiffy({ "year": 2007, "month": 1, "day": 28 }).diff([2017, 1, 29], Units.DAY); // 1
It return 1 day
My question is shouldn't it return 3651 days instead? because its 10 years and 1 day apart
The text was updated successfully, but these errors were encountered: