question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(feature) Add moment-duration-format dependency

See original GitHub issue

Did you search for duplicate issue? Yes

I would like to use the moment-duration-format library with this package. It looks like the amDuration pipe humanizes the duration, and I need more control over the output than what it provides.

I am thinking of a use case like {{ 5000 | amParseDuration | amDurationFormat:'mm:ss' }} which would print the output 00:05. moment.duration() also supports some other parsing methods that could be included as well.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:17
  • Comments:6

github_iconTop GitHub Comments

7reactions
radiumrasheedcommented, Dec 1, 2017

Any possibility for this or maybe a work around

7reactions
mariusl-acommented, Nov 17, 2017

+1 was just looking for this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

moment-duration-format - npm
The duration.format method allows coordinated formatting of multiple moment durations at once. This function accepts an array of durations as ...
Read more >
How to display duration time with moment-duration-format in ...
You need to import moment and moment-duration-format, firstly. import moment from 'moment'; import 'moment-duration-format'; Then, use duration ...
Read more >
Format Moment.js Duration - Stack Overflow
One way of doing this might be to convert your duration back into a moment (perhaps using milliseconds), and then using the moment's...
Read more >
moment-duration-format - Bountysource
Format function plugin for the Moment Duration object. Become a Bounty Hunter ... And I would create a wrapper on format result to...
Read more >
Docs - Moment.js
We will not be adding new features or capabilities. We will not be changing ... especially date pickers and graphing libraries, take Moment...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found