@hdate.setter<EOL><INDENT>def hdate(self, date):<DEDENT>
<EOL>if date is None and isinstance(self.gdate, datetime.date):<EOL><INDENT>date = self.hdate<EOL><DEDENT>if not isinstance(date, HebrewDate):<EOL><INDENT>raise TypeError('<STR_LIT>'.format(date))<EOL><DEDENT>if not <NUM_LIT:0> < date.month < <NUM_LIT:15>:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'.format(date.month))<EOL><DEDENT>if not <NUM_LIT:0> < date.day < <NUM_LIT>:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(date.day))<EOL><DEDENT>self._last_updated = "<STR_LIT>"<EOL>self._hdate = date<EOL>
Set the dates of the HDate object based on a given Hebrew date.