init
This commit is contained in:
@@ -289,10 +289,12 @@ class HTS:
|
|||||||
#print("날짜", "시간", "시가", "고가", "저가", "종가", "거래량")
|
#print("날짜", "시간", "시가", "고가", "저가", "종가", "거래량")
|
||||||
start_time = datetime.strptime(given_day + " 090000", '%Y%m%d %H%M%S')
|
start_time = datetime.strptime(given_day + " 090000", '%Y%m%d %H%M%S')
|
||||||
for i in range(size-1, -1, -1):
|
for i in range(size-1, -1, -1):
|
||||||
day = objStockChart.GetDataValue(0, i)
|
int_day = objStockChart.GetDataValue(0, i)
|
||||||
if day < int_given_day:
|
int_time = objStockChart.GetDataValue(1, i)
|
||||||
|
print (int_day, int_time)
|
||||||
|
if int_day < int_given_day:
|
||||||
continue
|
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:
|
if time < start_time:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user