Closed mu-hun closed 1 year ago
dayjs.extend(relativeTime) dayjs('1999-01-01').fromNow() // 20 years ago If you pass true, you can get the value without the suffix. dayjs.extend(relativeTime) dayjs('1999-01-01').fromNow(true) // 22 years Time from now .fromNow(withoutSuffix?: boolean) - RelativeTime · Day.js
dayjs.extend(relativeTime) dayjs('1999-01-01').fromNow() // 20 years ago
If you pass true, you can get the value without the suffix.
dayjs.extend(relativeTime) dayjs('1999-01-01').fromNow(true) // 22 years
Time from now .fromNow(withoutSuffix?: boolean) - RelativeTime · Day.js
.fromNow(withoutSuffix?: boolean)
I was confused about the difference between 20 years ago and 22 years 😕
20 years ago
22 years
so I fix similar value to 22 years.
Thanks
I was confused about the difference between
20 years ago
and22 years
😕so I fix similar value to
22 years
.