pyufunc.human_time_delta#
- pyufunc.human_time_delta(value, **kwargs)#
Format a duration as human-readable text.
- Parameters:
value – A
datetime.timedeltaor number of seconds.**kwargs – Keyword arguments passed to
humanize.naturaldelta.
Note
Source package:
humanize.Source repository: python-humanize/humanize
Source document: https://humanize.readthedocs.io/
Source license: MIT License.
Example
>>> human_time_delta(3600) 'an hour'
- Returns:
Human-readable duration.
- Return type: