python utc를 timestamp로 바꾸는 방법
from datetime import datetime
import time
utc = time.time()
time = datetime.datetime.utcfromtimestamp(utc).strftime(‘%Y-%m-%d’)
print(time)
실행결과
2017-04-24
from datetime import datetime
import time
utc = time.time()
time = datetime.datetime.utcfromtimestamp(utc).strftime(‘%Y-%m-%d’)
print(time)
실행결과
2017-04-24