code: def formatted_time(self, fmt: str = '') -> str:
          
          time_obj = self.time()
  
          if not fmt:
              fmt = self._data['formats'].get('time')
          return time_obj.strftime(fmt)
docs: Generate string formatted time.
  
          :param fmt: The format of time, if None then use standard
              accepted in the current locale.
          :return: String formatted time.