Skip to main content

Module units

Module units 

Source
Expand description

Unit conversion system

Handles conversions between duration units and scale units.

Functionsยง

convert_unit
Convert a value to a target unit (for in operator).
duration_to_seconds
Convert a duration value to seconds (base unit)
seconds_to_duration
Convert seconds to a duration value in the target unit