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)
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.
The constructor.
- static min_to_sec(minutes: float) int
Static helper function to turn minutes into seconds. Accept pointers.
- seconds = 0
- minutes
- hours
- readable = ''