def get_max_dt(): if is_archaelogical(): return bcdate_util.get_max_dt() return datetime(9999, 12, 31, 23, 59, 59, 999999)