def func1(a): print tdx2.parse_time_reverse(int(a[4:]))
def get_last_dline_ftime(dline, preday=0): return tdx2.parse_time_reverse(dline[-1-preday].ftime+1)
import tdx2 dline = tdx2.get_dayline_by_fid() strDateRange = str(tdx2.parse_time_reverse( dline[0].ftime )) + '-' + \ str(tdx2.parse_time_reverse( dline[-1].ftime )) print strDateRange
def get_last_dline_ftime(dline, preday=0): return tdx2.parse_time_reverse(dline[-1 - preday].ftime + 1)
def func1(a): print tdx2.parse_time_reverse( int(a[4:]) )