日期时间在python中无法正常工作

import datetime
def current_time():
    return datetime.datetime.today()
while True:
    if datetime.datetime(2020,5,17,21,56,10)==tools.current_time():
        print("NOW")
        break

我需要在当前时间等于该日期时执行代码。有时它正在工作,但有时却什么也没做?