I want to convert 13-digit Unix-time in milliseconds to the timestamp :
\"1523126888080\"==>> %Y-%m-%d %H:%M:%S
I have tried the following code from this lin
Try dividing 1523126888080 by 1000 to get a valid timestamp. You should also use %d instead of %D as argument for strftime, i.e:
1523126888080
1000
%d
%D
strftime
import time ts = 1523126888080 / 1000 print(time.strftime("%d %H:%M", time.localtime(ts))) # 29 21:04