client.units
Classes
A helper class provides static functions to switch among seconds, minutes, and hours. |
|
A helper class to convert memory units between B, k, K, m, M, g, G, t, T. |
Module Contents
- class client.units.TimeUnit(sec: int = 0, min: float = 0.0, hour: float = 0.0)[source]
A helper class provides static functions to switch among seconds, minutes, and hours.
It also can be initialized with combined input of seconds, minutes, and hours, and converts them to any single time unit.