Open Janeyz opened 3 years ago
Python's datetime module is your friend.
from datetime import datetime while True: last_time = Iq.get_server_timestamp() check_time = datetime.fromtimestamp(last_time).strftime(" [%H:%M:%S]") #convert this print('Time = ',check_time) print('ผมกินน้ำมะพร้าวบ่อยมาก') time.sleep(1)
how i convert time 1613136103.658 from Iq.get_server_timestamp() to normal time please?