iamkun/dayjs





The issue has been closed
dayjs.duration(x.diff(y)) 后获取seconds()返回大于59 #865
Syntax-J posted onGitHub
Describe the bug
let a = dayjs()
let b = dayjs().add(61, 's')
let c = dayjs.duration(b.diff(a))
console.log(c.minutes(), c.seconds())
moment表现正常
Expected behavior 返回0到59 Information
- Day.js Version [1.8.24]
- OS: [Catalina]
- Browser [chrome 81]