hamyar_paygah.utils.math_utils¶
Utility functions related to math.
Functions¶
|
Calculates the period of time between start and end. |
Module Contents¶
- hamyar_paygah.utils.math_utils.calculate_time_delta(start_time, end_time)¶
Calculates the period of time between start and end.
Returns None if either is None. Counts for the midnight bug in Asayar.
- Parameters:
start_time (datetime.time | None) – Starting time of the period
end_time (datetime.time | None) – Ending time of the period
- Returns:
Period of time between start and end.
- Return type:
datetime.timedelta | None