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

Feature request: Add Duration Plugin #564

Open
iamkun opened this issue Apr 9, 2019 · 20 comments
Open

Feature request: Add Duration Plugin #564

iamkun opened this issue Apr 9, 2019 · 20 comments

Comments

@iamkun
Copy link
Owner

@iamkun iamkun commented Apr 9, 2019

Issuehunt badges

Goal: to keep the same with moment.duration

  1. Parse ISO duration format #122
  2. Duration object to ISO string toISOString() #519
  3. Using Duration with Diff .duration(x.diff(y)) #414

ref: https://en.wikipedia.org/wiki/ISO_8601#Durations


IssueHunt Summary

Backers (Total: $116.00)

Submitted pull Requests


Become a backer now!

Or submit a pull request to get the deposits!

Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

@IssueHuntBot

This comment has been minimized.

Copy link

@IssueHuntBot IssueHuntBot commented Apr 12, 2019

@IssueHunt has funded $100.00 to this issue.


@iamkun

This comment has been minimized.

Copy link
Owner Author

@iamkun iamkun commented Apr 12, 2019

WIP

@IssueHuntBot

This comment has been minimized.

Copy link

@IssueHuntBot IssueHuntBot commented Apr 12, 2019

@xxyuk has funded $2.00 to this issue.


@IssueHuntBot

This comment has been minimized.

Copy link

@IssueHuntBot IssueHuntBot commented Apr 15, 2019

@zazzaz has funded $2.00 to this issue.


@IssueHuntBot

This comment has been minimized.

Copy link

@IssueHuntBot IssueHuntBot commented Apr 22, 2019

@waseemahmad31 has funded $2.00 to this issue.


@u01jmg3

This comment has been minimized.

Copy link

@u01jmg3 u01jmg3 commented May 28, 2019

Could this include functionality similar to moment-duration-format?

@iamkun

This comment has been minimized.

Copy link
Owner Author

@iamkun iamkun commented May 30, 2019

will include moment.duration in the first step

@lockee14

This comment has been minimized.

Copy link

@lockee14 lockee14 commented Jun 25, 2019

hi, may I work on this one? I did the plugin on my fork and it works
see:
durationISO8601

it return an object with this format:
const duration = { ISO: '', s: 0, m: 0, H: 0, D: 0, M: 0, y: 0 }

@iamkun

This comment has been minimized.

Copy link
Owner Author

@iamkun iamkun commented Jul 29, 2019

Feature request: Ability to transform seconds to time #641

var seconds = 3820;
var duration = moment.duration(seconds, 'seconds');
var formatted = duration.format("hh:mm:ss");
console.log(formatted);
@Wyzix33

This comment has been minimized.

Copy link

@Wyzix33 Wyzix33 commented Aug 2, 2019

Any news on this?

@kfreiman

This comment has been minimized.

Copy link

@kfreiman kfreiman commented Aug 6, 2019

alternative: humanize-duration package
it may be convenient to use that package as dependency in the Duration plugin

@Flcwl

This comment has been minimized.

Copy link

@Flcwl Flcwl commented Oct 26, 2019

how I can use it?

@romanlex

This comment has been minimized.

Copy link

@romanlex romanlex commented Nov 17, 2019

Any news on this? (

@iamgbayer

This comment has been minimized.

Copy link

@iamgbayer iamgbayer commented Nov 27, 2019

Any news on this?

@issuehunt-app

This comment has been minimized.

Copy link

@issuehunt-app issuehunt-app bot commented Jan 30, 2020

@muuvmuuv has funded $10.00 to this issue.


@Indigo744

This comment has been minimized.

Copy link

@Indigo744 Indigo744 commented Mar 11, 2020

Hello, any news regarding the work on the duration plugin?

@lockee14 provided a PR (#621), is something preventing from merging it?

Thanks.

@milobluebell

This comment has been minimized.

Copy link

@milobluebell milobluebell commented Mar 12, 2020

have the same 请尽快合并pr吧 @iamkun

@mackelito

This comment has been minimized.

Copy link

@mackelito mackelito commented Mar 19, 2020

Any updates here? Would really like to have it :)

@mackelito

This comment has been minimized.

Copy link

@mackelito mackelito commented Mar 20, 2020

Just to be clear.. I'm looking for something similar to https://momentjs.com/docs/#/durations/ :)

@mackelito

This comment has been minimized.

Copy link

@mackelito mackelito commented Mar 23, 2020

@iamkun any feed back would be greatly appreciated.. just to let us know an eta or even if this will ever happen.. :/

@milobluebell milobluebell mentioned this issue Apr 2, 2020
2 of 6 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.