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
Describe the bug Formatting a decimal value doesnt seperate out the hours and minutes
myDuration = dayjs.duration({ hours: 4.8 }) myDuration.format("HH:mm") => 4.8:undefined
Expected behavior
myDuration.format("HH:mm") => 04:48
The $ms is recorded correctly as $ms: 17280000 and the following outputs correctly:
$ms: 17280000
dayjs.duration(17280000).format("HH:mm") => 04:48
Am I expected to break up the duration into respected hours and minutes before passing it to dayjs duration?
Information
The text was updated successfully, but these errors were encountered:
Solution here : #965 (comment)
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Formatting a decimal value doesnt seperate out the hours and minutes
Expected behavior
The $ms is recorded correctly as
$ms: 17280000
and the following outputs correctly:Am I expected to break up the duration into respected hours and minutes before passing it to dayjs duration?
Information
The text was updated successfully, but these errors were encountered: