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
Describe the bug day.js
const now = dayjs('2020-07-24') const past = dayjs('2019-12-12') const pastPast = dayjs('2018-06-24') console.log( now.year(), past.year(), past.diff(now, 'year'), now.diff(past, 'year') ) console.log( now.year(), pastPast.year(), pastPast.diff(now, 'year'), now.diff(pastPast, 'year') )
console.log
2020 2019 0 0 // expected 1 2020 2018 -2 2
Expected behavior expected result value 1 when get diffrence between 2020 and 2019
Information
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
day.js
console.log
Expected behavior
expected result value 1 when get diffrence between 2020 and 2019
Information
The text was updated successfully, but these errors were encountered: