hydromodpy.core.units.time#

Time-unit helpers centered on SI (seconds).

Functions

convert_seconds_to_unit(value_seconds, *, unit)

Convert one numeric value in seconds to another time unit.

convert_to_seconds(value, *, unit[, label])

Convert one numeric value from unit to seconds.

factor_to_seconds(unit)

Return multiplicative factor to convert one unit to seconds.

normalize_time_unit(unit)

Normalize one time unit payload to canonical plural text.

timedelta_to_seconds(delta, *[, label])

Convert one timedelta-like payload to seconds.

to_modflow6_time_units(unit)

Return MODFLOW 6 time_units text token.

to_modflow_itmuni(unit)

Return MODFLOW ITMUNI integer code from unit payload.

to_pandas_timedelta_unit(unit)

Return pandas to_timedelta unit alias for one canonical time unit.