Open cmoine opened 3 years ago
moment.duration(moment(moment([2021, 4, 30]).diff(moment([2004, 9, 1])), 'seconds').format('yy [years]') shows for instance: 16.579 years, 9 months, 16 days
moment.duration(moment(moment([2021, 4, 30]).diff(moment([2004, 9, 1])), 'seconds').format('yy [years]')
16.579 years, 9 months, 16 days
There shouldn't be decimals for years, or am I missing something?
moment.duration(moment(moment([2021, 4, 30]).diff(moment([2004, 9, 1])), 'seconds').format('yy [years]')
shows for instance:16.579 years, 9 months, 16 days
There shouldn't be decimals for years, or am I missing something?