code: def new(self, time_flags):
          # type: (int) -> None
          '''
          Create a new Rock Ridge Time Stamp record.
  
          Parameters:
           time_flags - The flags to use for this time stamp record.
          Returns:
           Nothing.
          '''
          if self._initialized:
              raise pycdlibexception.PyCdlibInternalError('TF record already initialized!')
  
          self.time_flags = time_flags
  
          tflen = 7
          if self.time_flags & (1 << 7):
              tflen = 17
  
          for index, fieldname in enumerate(self.FIELDNAMES):
              if self.time_flags & (1 << index):
                  if tflen == 7:
                      setattr(self, fieldname, dates.DirectoryRecordDate())
                  elif tflen == 17:
                      setattr(self, fieldname, dates.VolumeDescriptorDate())
                  getattr(self, fieldname).new()
  
          self._initialized = Truf new(self, time_flags):
          # type: (int) -> None
          '''
          Create a new Rock Ridge Time Stamp record.
  
          Parameters:
           time_flags - The flags to use for this time stamp record.
          Returns:
           Nothing.
          '''
          if self._initialized:
              raise pycdlibexception.PyCdlibInternalError('TF record already initialized!')
  
          self.time_flags = time_flags
  
          tflen = 7
          if self.time_flags & (1 << 7):
              tflen = 17
  
          for index, fieldname in enumerate(self.FIELDNAMES):
              if self.time_flags & (1 << index):
                  if tflen == 7:
                      setattr(self, fieldname, dates.DirectoryRecordDate())
                  elif tflen == 17:
                      setattr(self, fieldname, dates.VolumeDescriptorDate())
                  getattr(self, fieldname).new()
  
          self._initialized = True
docs: Create a new Rock Ridge Time Stamp record.
  
          Parameters:
           time_flags - The flags to use for this time stamp record.
          Returns:
           Nothing.