code: def new(self):
          # type: () -> None
          '''
          Create a new Directory Record date based on the current time.
  
          Parameters:
           tm - An optional argument that must be None
          Returns:
           Nothing.
          '''
          if self._initialized:
              raise pycdlibexception.PyCdlibInternalError('Directory Record Date already initialized')
  
          # This algorithm was ported from cdrkit, genisoimage.c:iso9660_date()
          tm = time.time()
          local = time.localtime(tm)
          self.years_since_1900 = local.tm_year - 1900
          self.month = local.tm_mon
          self.day_of_month = local.tm_mday
          self.hour = local.tm_hour
          self.minute = local.tm_min
          self.second = local.tm_sec
          self.gmtoffset = utils.gmtoffset_from_tm(tm, local)
          self._initialized = Truf new(self):
          # type: () -> None
          '''
          Create a new Directory Record date based on the current time.
  
          Parameters:
           tm - An optional argument that must be None
          Returns:
           Nothing.
          '''
          if self._initialized:
              raise pycdlibexception.PyCdlibInternalError('Directory Record Date already initialized')
  
          # This algorithm was ported from cdrkit, genisoimage.c:iso9660_date()
          tm = time.time()
          local = time.localtime(tm)
          self.years_since_1900 = local.tm_year - 1900
          self.month = local.tm_mon
          self.day_of_month = local.tm_mday
          self.hour = local.tm_hour
          self.minute = local.tm_min
          self.second = local.tm_sec
          self.gmtoffset = utils.gmtoffset_from_tm(tm, local)
          self._initialized = True
docs: Create a new Directory Record date based on the current time.
  
          Parameters:
           tm - An optional argument that must be None
          Returns:
           Nothing.