hamyar_paygah.utils.math_utils ============================== .. py:module:: hamyar_paygah.utils.math_utils .. autoapi-nested-parse:: Utility functions related to math. Functions --------- .. autoapisummary:: hamyar_paygah.utils.math_utils.calculate_time_delta Module Contents --------------- .. py:function:: 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. :param start_time: Starting time of the period :type start_time: datetime.time | None :param end_time: Ending time of the period :type end_time: datetime.time | None :returns: Period of time between start and end. :rtype: datetime.timedelta | None