code: def dosdate(dosdate, dostime):
      
      try:
          t  = ord(dosdate[1]) << 8
          t |= ord(dosdate[0])
          day   = t & 0b0000000000011111
          month = (t & 0b0000000111100000) >> 5
          year  = (t & 0b1111111000000000) >> 9
          year += 1980
  
          t  = ord(dostime[1]) << 8
          t |= ord(dostime[0])
          sec     = t & 0b0000000000011111
          sec    *= 2
          minute  = (t & 0b0000011111100000) >> 5
          hour    = (t & 0b1111100000000000) >> 11
  
          return datetime(year, month, day, hour, minute, sec)
      except:
          return datetime.min
docs: `dosdate`: 2 bytes, little endian.
      `dostime`: 2 bytes, little endian.
      returns: datetime.datetime or datetime.datetime.min on error