utils/SettingsReader.py
def totalDuration(self, block:str, parse:bool=True) -> object:
        """Returns total duration of all intervals.
        
        :param block:
        :param parse: bool whether to parse str to timedelta or not.
        :return: Duration of interval in timedelta or str format.
        """
        dur = pd.DataFrame(self.getDurations(block=block, parse=True)).sum()[0]
        if parse:
            return dur
        else:
            return dur.strftime('%M:%S.%f')
Returns total duration of all intervals.
        
        :param block:
        :param parse: bool whether to parse str to timedelta or not.
        :return: Duration of interval in timedelta or str format.
        
Returns total duration of all intervals.
Returns total duration of all intervals .
def totalDuration(self, block:str, parse:bool=True) -> object:
        dur = pd.DataFrame(self.getDurations(block=block, parse=True)).sum()[0]
        if parse:
            return dur
        else:
            return dur.strftime('%M:%S.%f')
def totalDuration ( self , block : str , parse : bool = True ) -> object : dur = pd . DataFrame ( self . getDurations ( block = block , parse = True ) ) . sum ( ) [ 0 ] if parse : return dur else : return dur . strftime ( '%M:%S.%f' )
Returns total duration of all intervals.
Returns total duration of all intervals .
"""Returns total duration of all intervals.
        
        :param block:
        :param parse: bool whether to parse str to timedelta or not.
        :return: Duration of interval in timedelta or str format.
        """
Duration of interval in timedelta or str format.
Duration of interval in timedelta or str format .
self
block
str
None
parse
bool
bool whether to parse str to timedelta or not.
bool whether to parse str to timedelta or not .