def print_tokendata(tokenStatus): #print token status for i in range(0, len(tokenStatus)): if (i == 4 or i == 5): dt = DatetimeUtil.timestamp_datetime(tokenStatus[i]) #dt=datetime.datetime.utcfromtimestamp(token_data[i]/1e3) print(DatetimeUtil.datetime_string(dt)) #print(DatetimeUtil.datetime_timestamp(dt)) #print(token_data[i]) else: print(tokenStatus[i])
def print_tokendata(token_data): #print token status for i in range(0, len(token_data[0])): if (i == 3 or i == 4): dt = DatetimeUtil.timestamp_datetime(token_data[0][i]) #dt=datetime.datetime.utcfromtimestamp(token_data[i]/1e3) print(DatetimeUtil.datetime_string(dt)) #print(DatetimeUtil.datetime_timestamp(dt)) #print(token_data[i]) else: print(token_data[0][i]) #print delegation status for i in range(0, len(token_data[1])): print(token_data[1][i]) #print authprization status print(token_data[2])