We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
iamkun
Learn more about funding links in repositories.
Report abuse
1 parent 2836fe5 commit e2e5116Copy full SHA for e2e5116
src/index.js
@@ -92,10 +92,6 @@ class Dayjs {
92
return !(this.$d.toString() === 'Invalid Date')
93
}
94
95
- isLeapYear() {
96
- return ((this.$y % 4 === 0) && (this.$y % 100 !== 0)) || (this.$y % 400 === 0)
97
- }
98
-
99
$compare(that) {
100
return this.valueOf() - dayjs(that).valueOf()
101
test/query.test.js
@@ -12,11 +12,6 @@ afterEach(() => {
12
13
const testArr = [dayjs, moment]
14
15
-it('IsLeapYear', () => {
16
- expect(dayjs('20000101').isLeapYear()).toBe(true)
17
- expect(dayjs('2100-01-01').isLeapYear()).toBe(false)
18
-})
19
20
describe('Is Before Is After Is Same', () => {
21
it('Compare to dayjs object', () => {
22
testArr.forEach((instance) => {
0 commit comments