hamyar_paygah.utils.math_utils

Utility functions related to math.

Functions

calculate_time_delta(start_time, end_time)

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:
Returns:

Period of time between start and end.

Return type:

datetime.timedelta | None