This document describes the current stable version of Kombu (5.3). For development docs, go here.

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.