This document is for Kombu's development version, which can be significantly different from previous releases. Get the stable docs here: 5.0.

Time Utilities - kombu.utils.time

Time Utilities.

kombu.utils.time.maybe_s_to_ms(v: int | float | None) int | None[source]

Convert seconds to milliseconds, but return None for None.