def _parseTimeOfDay(self) -> Optional[Tuple[(int, int)]]:
    from_config = self.config.get(Setting.BACKUP_TIME_OF_DAY)
    if (len(from_config) == 0):
        return None
    parts = from_config.split(':')
    if (len(parts) != 2):
        return None
    try:
        hour: int = int(parts[0])
        minute: int = int(parts[1])
        if ((hour < 0) or (minute < 0) or (hour > 23) or (minute > 59)):
            return None
        return (hour, minute)
    except ValueError:
        return None
def _parseTimeOfDay(self) -> Optional[Tuple[(int, int)]]:
    from_config = self.config.get(Setting.BACKUP_TIME_OF_DAY)
    if (len(from_config) == 0):
        return None
    parts = from_config.split(':')
    if (len(parts) != 2):
        return None
    try:
        hour: int = int(parts[0])
        minute: int = int(parts[1])
        if ((hour < 0) or (minute < 0) or (hour > 23) or (minute > 59)):
            return None
        return (hour, minute)
    except ValueError:
        return None