pyufunc.time_unit_converter#
- pyufunc.time_unit_converter(value, from_unit, to_unit, verbose=False)#
Convert a time value between seconds, minutes, hours, days, years.
- Parameters:
Example
>>> from pyufunc import time_unit_converter >>> time_unit_converter(1, "hours", "minutes") 60.0
- Returns:
The converted value in the target unit.
- Return type:
- Raises:
ValueError – If an invalid unit is provided.