iamkun/dayjs

Feature request: Add Duration Plugin #564

iamkun posted onGitHub

Update: DONE ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰

Duration https://day.js.org/docs/en/durations/durations

v1.8.24


Official duration plugin https://github.com/iamkun/dayjs/pull/858


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 has funded $100.00 to this issue.


posted by IssueHuntBot almost 6 years ago

WIP

posted by iamkun almost 6 years ago

@xxyuk has funded $2.00 to this issue.


posted by IssueHuntBot almost 6 years ago

@zazzaz has funded $2.00 to this issue.


posted by IssueHuntBot almost 6 years ago

@waseemahmad31 has funded $2.00 to this issue.


posted by IssueHuntBot almost 6 years ago

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

posted by u01jmg3 almost 6 years ago

will include moment.duration in the first step

posted by iamkun almost 6 years ago

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 }

posted by lockee14 over 5 years ago

Any news on this?

posted by Wyzix33 over 5 years ago

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

posted by kfreiman over 5 years ago

how I can use it?

posted by Flcwl over 5 years ago

Any news on this? (

posted by romanlex over 5 years ago

Any news on this?

posted by iamgbayer over 5 years ago

@muuvmuuv has funded $10.00 to this issue.


posted by issuehunt-app[bot] about 5 years ago

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

@lockee14 provided a PR (https://github.com/iamkun/dayjs/pull/621), is something preventing from merging it?

Thanks.

posted by Indigo744 about 5 years ago

have the same ่ฏทๅฐฝๅฟซๅˆๅนถprๅง @iamkun

posted by milobluebell about 5 years ago

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

posted by mackelito almost 5 years ago

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

posted by mackelito almost 5 years ago

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

posted by mackelito almost 5 years ago

@iamkun has rewarded $104.40 to @iamkun. See it on IssueHunt

  • :moneybag: Total deposit: $116.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $11.60
posted by issuehunt-app[bot] almost 5 years ago

Hooray !

posted by dzetah almost 5 years ago

Documentation missing and not yet released right?

posted by muuvmuuv almost 5 years ago

@muuvmuuv will release in the next release this week.

posted by iamkun almost 5 years ago

:tada: This issue has been resolved in version 1.8.24 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

posted by iamkun almost 5 years ago

Fund this Issue

$116.00
Rewarded

Rewarded pull request

Other pull requests

Recent activities

iamkun was rewarded for iamkun/dayjs# 564
almost 5 years ago
iamkun submitted an output to  iamkun/ dayjs# 564
almost 5 years ago