duration_string
Version of str(timedelta) which is not English specific.
def duration_string(
duration: timedelta
) - > string
Version of str(timedelta) which is not English specific.
Parameters
| Name | Type | Description |
|---|---|---|
| duration | timedelta | The timedelta object representing the span of time to be formatted |
Returns
| Type | Description |
|---|---|
string | A formatted duration string in '[D ]HH:MM .uuuuuu ' format, avoiding locale-specific labels like 'days'. |