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

时间实用程序- kombu.utils.time

时间实用程序。

kombu.utils.time.maybe_s_to_ms(v: int | float | None) int | None[源代码]

将秒转换为毫秒,但如果无则返回NONE。