In [15]:from datetime import datetime; import time

In [16]: datetime.strftime(datetime.strptime('2016-09-20 20:00:13', '%Y-%m-%d %H:%M:%S'), '%Y.%m.%d %H:%M:%S KST')
Out[16]: '2016.09.20 20:00:13 KST'

In [17]: s = datetime.strptime('2016-09-20 20:00:13', '%Y-%m-%d %H:%M:%S')

In [18]: time.mktime(s.timetuple())
Out[18]: 1474369213.0

이건 자꾸 까먹어서 ㅠㅠ

신고