嘿,伙计们,我在使用这两个函数 return utc_dt.replace(tzinfo=tz.gettz('UTC')).astimezonewhile curr < end: curr += delta
for result in perdelta(utc_to_local(datetime.datetime.utcnow()- datetime.timedelta(minute
while True: print((now.hour >= 2 and now.minute >= 20), (now.hourwhile (now.hour >= 2 and now.minute >= 20) and (now.hour <= 21 and now.minute <= 49):
now = datetime.datetime.now