repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git]
/
packages
/
shared
/
lib
/
date-fns-utc
/
differenceInCalendarYears.ts
blob
26599c74225a1f6dd9dc3a17b620fd27e0f3c1b6
1
const differenceInCalendarYears = (left: Date, right: Date) => {
2
return left.getUTCFullYear() - right.getUTCFullYear();
3
};
4
5
export default differenceInCalendarYears;