pyufunc.parse_timedelta_text#
- pyufunc.parse_timedelta_text(text)#
Parse human-readable duration text into
datetime.timedelta.- Parameters:
text – Duration text accepted by
boltons.timeutils.parse_timedelta.
Note
Source package:
boltons.Source repository: mahmoud/boltons
Source document: https://boltons.readthedocs.io/en/latest/
Source license: BSD License.
Example
>>> parse_timedelta_text("1h")
- Returns:
Parsed
datetime.timedeltavalue.- Return type:
Any