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

Considering add duration? #122

Closed
qkang07 opened this issue May 9, 2018 · 10 comments
Closed

Considering add duration? #122

qkang07 opened this issue May 9, 2018 · 10 comments

Comments

@qkang07
Copy link

qkang07 commented May 9, 2018

In moment I use duration a lot.

@iamkun
Copy link
Owner

iamkun commented May 9, 2018

Update:

Duration dayjs@1.8.24
https://day.js.org/docs/en/durations/durations


Will support as a plugin later.

@xx45
Copy link
Contributor

xx45 commented May 25, 2018

@kangkang07 Do you mean moment.duration(Number, String);?

Could your please tell us what's this API used for in moment.js? I'm not familiar with this.

@qkang07
Copy link
Author

qkang07 commented May 28, 2018

@xx45 Yes

@iamkun
Copy link
Owner

iamkun commented May 29, 2018

@kangkang07

check RelativeTime Plugin

This should suits you.

@jordancardwell
Copy link

@kangkang07 this may or may not be applicable... but I used duration in moment for calculating ages.. I've found dayjs.diff suites my needs.

dayjs.diff(birthday, 'year')

@iamkun
Copy link
Owner

iamkun commented Feb 2, 2019

I'll close this issue since it's been a while since it's been opened. Feel free to reopen if you have updates on this

@iamkun iamkun closed this as completed Feb 2, 2019
@quantizor
Copy link

quantizor commented Apr 5, 2019

Any chance this could be reopened? Specifically looking for a plugin that can handle ISO duration format. https://en.wikipedia.org/wiki/ISO_8601#Durations and output the total amount of minutes, etc.

@iamkun
Copy link
Owner

iamkun commented Apr 6, 2019

@probablyup

will do 😁

@devanp92
Copy link

devanp92 commented Apr 9, 2019

@iamkun Is there an ETA/release timeline for this? This would be an amazing feature to have!

@iamkun
Copy link
Owner

iamkun commented Apr 9, 2019

#564 todo: Duration Plugin

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

6 participants