We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7480340 commit e84d79fCopy full SHA for e84d79f
src/impl/diff.js
@@ -9,7 +9,7 @@ function dayDiff(earlier, later) {
9
function highOrderDiffs(cursor, later, units) {
10
const differs = [
11
["years", (a, b) => b.year - a.year],
12
- ["quarters", (a, b) => b.quarter - a.quarter],
+ ["quarters", (a, b) => b.quarter - a.quarter + (b.year - a.year) * 4],
13
["months", (a, b) => b.month - a.month + (b.year - a.year) * 12],
14
[
15
"weeks",
0 commit comments