diff --git a/QUANTAXIS_Test/QAUtil_Test/QADate_trade_Test.py b/QUANTAXIS_Test/QAUtil_Test/QADate_trade_Test.py index 880a46cbb..ad3625dcb 100644 --- a/QUANTAXIS_Test/QAUtil_Test/QADate_trade_Test.py +++ b/QUANTAXIS_Test/QAUtil_Test/QADate_trade_Test.py @@ -8,16 +8,15 @@ class Test_QA_Date_trade(unittest.TestCase): def test_QA_util_if_trade(self): - now = QADate.QA_util_time_now() - str_from_today = '%04d-%02d-%02d' % (now.year, now.month, now.day) - + #str_from_today = '%04d-%02d-%02d' % (now.year, now.month, now.day) + str_from_today=str(datetime.date.today()) nDayLeft = 1000 while nDayLeft > 0: toDayIsTradeDay = QADate_trade.QA_util_if_trade(str_from_today) realTradeDay = QADate_trade.QA_util_get_real_date(str_from_today) - QADate.QA_util_date_valid(realTradeDay) + QADate.QA_util_date_valid(realTradeDWWWay) if toDayIsTradeDay == False: prev_trade_day = QADate_trade.QA_util_get_last_day(