code: def from_string(input_str) -> 'MissionTime':
          # noinspection SpellCheckingInspection
          
          match = RE_INPUT_STRING.match(input_str)
          if not match:
              raise ValueError(f'badly formatted date/time: {input_str}')
  
          return MissionTime(
              datetime.datetime(
                  int(match.group('year')),
                  int(match.group('month')),
                  int(match.group('day')),
                  int(match.group('hour')),
                  int(match.group('minute')),
                  int(match.group('second')),
              )
          )
docs: Creates a MissionTime instance from a string
  
          Format: YYYYMMDDHHMMSS
  
          Args:
              input_str: string to parse
  
          Returns: MissionTime instance