Major fixes and new features
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
9
venv/lib/python3.12/site-packages/kombu/utils/time.py
Normal file
9
venv/lib/python3.12/site-packages/kombu/utils/time.py
Normal file
@@ -0,0 +1,9 @@
|
||||
"""Time Utilities."""
|
||||
from __future__ import annotations
|
||||
|
||||
__all__ = ('maybe_s_to_ms',)
|
||||
|
||||
|
||||
def maybe_s_to_ms(v: int | float | None) -> int | None:
|
||||
"""Convert seconds to milliseconds, but return None for None."""
|
||||
return int(float(v) * 1000.0) if v is not None else v
|
||||
Reference in New Issue
Block a user