Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decimals appears when formatting years #151

Open
cmoine opened this issue Apr 30, 2021 · 0 comments
Open

Decimals appears when formatting years #151

cmoine opened this issue Apr 30, 2021 · 0 comments

Comments

@cmoine
Copy link

cmoine commented Apr 30, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant