获取当前时间n分钟之后的时间
def test_getaftertime(self, n): # 精确到分钟 """ 获取当前时间往后的时间 :param n: 当前时间后的n分钟 :return: 返回当前时间后的时间,精确当分钟 """ nowtime = datetime.now().strftime('%Y-%m-%d %H:%M:%S') # 获取当前时间 ...