code: def as_datetime(self):
          '''Get as python datetime.datetime.
  
          Require year to be a valid datetime year. Default month and day to 1 if
          do not exist.
  
          @return: datetime.datetime object.
          '''
          year = int(self.year)
          month = int(self.month) if self.month else 1
          day = int(self.day) if self.day else 1
          hour = int(self.hour) if self.hour else 0
          minute = int(self.minute) if self.minute else 0
          second = int(self.second) if self.second else 0
          microsecond = int(self.microsecond) if self.microsecond else 0
          return datetime.datetime(year, month, day, hour, minute, second, microsecondf as_datetime(self):
          '''Get as python datetime.datetime.
  
          Require year to be a valid datetime year. Default month and day to 1 if
          do not exist.
  
          @return: datetime.datetime object.
          '''
          year = int(self.year)
          month = int(self.month) if self.month else 1
          day = int(self.day) if self.day else 1
          hour = int(self.hour) if self.hour else 0
          minute = int(self.minute) if self.minute else 0
          second = int(self.second) if self.second else 0
          microsecond = int(self.microsecond) if self.microsecond else 0
          return datetime.datetime(year, month, day, hour, minute, second, microsecond)
docs: Get as python datetime.datetime.
  
          Require year to be a valid datetime year. Default month and day to 1 if
          do not exist.
  
          @return: datetime.datetime object.