mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
修复分时K线,时间不对的问题
This commit is contained in:
@@ -101,7 +101,7 @@ func GetTime(bs [4]byte, Type uint8) time.Time {
|
||||
case TypeKlineDay2, TypeKlineMinute, TypeKlineMinute2:
|
||||
|
||||
yearMonthDay := Uint16(bs[:2])
|
||||
hourMinute := Uint16(bs[:2])
|
||||
hourMinute := Uint16(bs[2:4])
|
||||
year := int(yearMonthDay>>11 + 2004)
|
||||
month := yearMonthDay % 2048 / 100
|
||||
day := int((yearMonthDay % 2048) % 100)
|
||||
|
||||
Reference in New Issue
Block a user