code: def GetDate(self):
      
      if self._timestamp is None:
        return None, None, None
  
      try:
        number_of_days, _, _, _ = self._GetTimeValues(self._timestamp)
        return self._GetDateValues(number_of_days, 1970, 1, 1)
      except ValueError:
        return None, None, None
docs: Retrieves the date represented by the date and time values.
  
      Returns:
         tuple[int, int, int]: year, month, day of month or (None, None, None)
             if the date and time values do not represent a date.