(duration)
| 2 | |
| 3 | |
| 4 | def _get_duration_components(duration): |
| 5 | days = duration.days |
| 6 | seconds = duration.seconds |
| 7 | microseconds = duration.microseconds |
| 8 | |
| 9 | minutes = seconds // 60 |
| 10 | seconds %= 60 |
| 11 | |
| 12 | hours = minutes // 60 |
| 13 | minutes %= 60 |
| 14 | |
| 15 | return days, hours, minutes, seconds, microseconds |
| 16 | |
| 17 | |
| 18 | def duration_string(duration): |
no outgoing calls
no test coverage detected