You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the non-i18n version of the proposal. It should support finding out the tokens, sorting them, figuring out where to overflow (in HH:mm:ss minutes overflow to hours, but hours don't overflow) assign values to all tokens and then display.
Problematic areas are zero tokens (are you ok with 00:00:01?): the function may be given array of formats or assume the tokens are sorted in the string and slice from the first non-zero token to the end.
I would like to be able to format duration as time:
moment.duration(3600, 'seconds')).format('HH:mm:ss');
output should produce
01:00:00
The text was updated successfully, but these errors were encountered: