code: def datetime(self, start: int = 2000, end: int = 2035,
                   timezone: Optional[str] = None) -> DateTime:
          
          datetime_obj = datetime.combine(
              date=self.date(start, end),
              time=self.time(),
          )
          if timezone:
              if not pytz:
                  raise ImportError('Timezones are supported only with pytz')
              tz = pytz.timezone(timezone)
              datetime_obj = tz.localize(datetime_obj)
  
          return datetime_obj
docs: Generate random datetime.
  
          :param start: Minimum value of year.
          :param end: Maximum value of year.
          :param timezone: Set custom timezone (pytz required).
          :return: Datetime