import datetime class datetime_FixedToday(datetime.datetime): @classmethod def today(cls): return cls(2020, 4, 1, 12, 34, 56) datetime.datetime = datetime_FixedToday