Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. 19 Ιουλ 2021 · I have a function that returns information in seconds, but I need to store that information in hours:minutes:seconds.

  2. 25 Μαΐ 2011 · I use this in python to convert a float representing seconds to hours, minutes, seconds, and microseconds. It's reasonably elegant and is handy for converting to a datetime type via strptime to convert. It could also be easily extended to longer intervals (weeks, months, etc.) if needed.

  3. 6 Σεπ 2014 · Let's first get the logic right. Suppose you want to write 5000 seconds as x hours y minutes z seconds, such that all three are integers and neither y nor z is greater than 59.

  4. 31 Οκτ 2013 · I have a time as a number of milliseconds and I want to convert it to a HH:MM:SS format. It should wrap around, with milliseconds = 86400000 I want to get 00:00:00.

  5. 28 Αυγ 2009 · Using datetime example >>> from datetime import datetime >>> then = datetime(2012, 3, 5, 23, 8, 15) # Random date in the past >>> now = datetime.now() # Now ...

  6. 25 Ιουν 2022 · For 5 seconds: 5 seconds For 67 seconds: 1 minute, 7 seconds For 3600 seconds: 1 hour For 3605 seconds: 1 hour For 3667 seconds: 1 hour, 1 minute For 86400 seconds: 1 day For 86405 seconds: 1 day For 86457 seconds: 1 day For 90000 seconds: 1 day, 1 hour For 90067 seconds: 1 day, 1 hour For 172800 seconds: 2 days For 190800 seconds: 2 days, 5 ...

  7. 7 Ιαν 2013 · There's no built-in formatter for timedelta objects, but it's pretty easy to do it yourself:. days, seconds = duration.days, duration.seconds hours = days * 24 + seconds // 3600 minutes = (seconds % 3600) // 60 seconds = seconds % 60

  8. 8 Μαΐ 2016 · // Seconds to Days Hours Minutes Seconds function const sec2DHMS = s => { // D/Hr/Min from Sec calculation. // Both Hr and Min timeframes have 60 and D have 24 fractions, so we // can create one logic for them.

  9. 24 Αυγ 2009 · Edge case perhaps, yet something to be aware of: suppose a value such as totalSeconds = 1739.8395. (T.J. mentions fractional portions in comment above.)

  10. 19 Σεπ 2008 · new_time:time = time( hour=curr_time.hour + n_hours, minute=curr_time.minute + n_minutes, seconds=curr_time.second + n_seconds ) Admittedly this only works if you make a few assumptions about your values, since overflow is not handled here. But I just thought it was worth to keep this in mind as it can save a line or two

  1. Γίνεται επίσης αναζήτηση για