Using daysInHours but hours won't go over 24
See original GitHub issueHey I tried to show countdown for approx 2 days like this for example 42:50:31 but seems like the hours part can only show it to 24 so if the hours value go past 24 it will fill days value
is this expected? since props daysInHours supposed to count days as hours
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
python - Can't calculate the difference between 2 days in hours
Closed 8 years ago. I need to check if some date and now arent' different more than in 18 hours: dt = parser.parse(" ......
Read more >How to display time over 24 hours in Excel
Excel doesn't display hours over 24 by default. But, if you change one option in the number format, you can display hours over...
Read more >Calculating the difference in network days in hours (excluding ...
Hi, I am trying to calculate the difference in hours between two dates with times. I want the difference to only include business...
Read more >react-countdown - npm
When set to true , the countdown timer won't stop when hitting 0, but instead becomes negative and continues to run unless paused/stopped....
Read more >Need help formatting axis for duration - Bokeh Discourse
It works to some extent in the sence it show days in hours, but it is ... days in hours; when duration is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi @xi1570-krupeshanadkat, thanks for bringing this up again. I’ve checked your example and the problem is that not the
formattedobject (which is also part of therendererfunction props) values are used, but the “raw” ones that basically ignore all formatting options.Here the working example: https://codesandbox.io/s/react-countdown-days-to-hours-forked-6lcku?file=/src/App.js
Although it’s briefly mentioned in the docs, it’s not part of the props’ representation there yet, thanks again!
I see, I was missing the
formattedobject wrapping. Really appreciate your quick response with solution. Thanks for helping out 😃