Skip to content
New issue

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

Get duration over 24 hours #2030

Closed
innovaweb-dev opened this issue Aug 19, 2022 · 2 comments
Closed

Get duration over 24 hours #2030

innovaweb-dev opened this issue Aug 19, 2022 · 2 comments

Comments

@innovaweb-dev
Copy link

dayjs.duration(value,'hours' ).format('H[h] m[m]')

Describe the bug
The duration is reset after 24 hours

47.5 = 0H30
30.2 = 7H12

Expected behavior
Does not reset duration after 24 hours.

47.5 = 47H30
30.2 = 30H12 

Information

  • Day.js Version 1.11.4
  • OS: Windows 11
  • Browser : All browers
  • Time zone: All Timezone
@Bykiev
Copy link

Bykiev commented Aug 19, 2022

Hi, this is expected behaviour. Here is a demo with required result

@innovaweb-dev
Copy link
Author

Thanks @Bykiev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants