code: def timestamp(s):
      '''
      Converts a timestamp given in "hhmmss[.ss]" ASCII text format to a
      datetime.time object
      '''
      ms_s = s[6:]
      ms = ms_s and int(float(ms_s) * 1000000) or 0
  
      t = datetime.time(
          hour=int(s[0:2]),
          minute=int(s[2:4]),
          second=int(s[4:6]),
          microsecond=ms)
      return f timestamp(s):
      '''
      Converts a timestamp given in "hhmmss[.ss]" ASCII text format to a
      datetime.time object
      '''
      ms_s = s[6:]
      ms = ms_s and int(float(ms_s) * 1000000) or 0
  
      t = datetime.time(
          hour=int(s[0:2]),
          minute=int(s[2:4]),
          second=int(s[4:6]),
          microsecond=ms)
      return t
docs: Converts a timestamp given in "hhmmss[.ss]" ASCII text format to a
      datetime.time object