We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Nice port, but the duration method needs to accept a custom format string.
I.E. {{ 3600000 | duration('hh:mm:ss') }}
{{ 3600000 | duration('hh:mm:ss') }}
Or allow chaining duration back into moment, {{ 3600000 | duration() | moment('hh:mm:ss') }}
{{ 3600000 | duration() | moment('hh:mm:ss') }}
The text was updated successfully, but these errors were encountered:
Agree! A workaround to go from milliseconds or seconds to a formatted string is to use a method as follows:
methods: { durationDisplay: function(sec) { return this.$moment.utc(sec * 1000).format('h[h] m[m] s[s]') } }
Sorry, something went wrong.
No branches or pull requests
Nice port, but the duration method needs to accept a custom format string.
I.E.
{{ 3600000 | duration('hh:mm:ss') }}
Or allow chaining duration back into moment,
{{ 3600000 | duration() | moment('hh:mm:ss') }}
The text was updated successfully, but these errors were encountered: