This commit is contained in:
dosangyoon
2021-09-22 22:10:47 +09:00
parent f8331a98e8
commit d566813399

View File

@@ -289,10 +289,12 @@ class HTS:
#print("날짜", "시간", "시가", "고가", "저가", "종가", "거래량")
start_time = datetime.strptime(given_day + " 090000", '%Y%m%d %H%M%S')
for i in range(size-1, -1, -1):
day = objStockChart.GetDataValue(0, i)
if day < int_given_day:
int_day = objStockChart.GetDataValue(0, i)
int_time = objStockChart.GetDataValue(1, i)
print (int_day, int_time)
if int_day < int_given_day:
continue
time = datetime.strptime(str(day)+" "+str(objStockChart.GetDataValue(1, i)), '%Y%m%d %H%M%S')
time = datetime.strptime(str(int_day)+" "+str(objStockChart.GetDataValue(1, i)).zfill(4)+"00", '%Y%m%d %H%M%S')
if time < start_time:
continue