code: def date_time_this_century(
              self,
              before_now=True,
              after_now=False,
              tzinfo=None):
          
          now = datetime.now(tzinfo)
          this_century_start = datetime(
              now.year - (now.year % 100), 1, 1, tzinfo=tzinfo)
          next_century_start = datetime(
              min(this_century_start.year + 100, MAXYEAR), 1, 1, tzinfo=tzinfo)
  
          if before_now and after_now:
              return self.date_time_between_dates(
                  this_century_start, next_century_start, tzinfo)
          elif not before_now and after_now:
              return self.date_time_between_dates(now, next_century_start, tzinfo)
          elif not after_now and before_now:
              return self.date_time_between_dates(this_century_start, now, tzinfo)
          else:
              return now
docs: Gets a DateTime object for the current century.
  
          :param before_now: include days in current century before today
          :param after_now: include days in current century after today
          :param tzinfo: timezone, instance of datetime.tzinfo subclass
          :example DateTime('2012-04-04 11:02:02')
          :return DateTime