ospx.utils.dateTime¶
Functions
|
Calculate the time delta between time0 and time1. |
- ospx.utils.dateTime.calc_time(time0: datetime, time1: datetime) tuple[int, int, int, int, int] ¶
Calculate the time delta between time0 and time1.
Calculates the time delta between time0 and time1 and returns the result as a tuple of integers representing the number of months, days, hours, minutes and seconds the time delta constitutes.
- Parameters:
time0 (datetime) – start time
time1 (datetime) – end time
- Returns:
tuple of integers representing the number of months, days, hours, minutes and seconds the time delta constitutes.
- Return type:
Tuple[int, int, int, int, int]