Python

Date 문자열(RFC822)을 UTC Timestamp로 변경

behonestar 2019. 4. 23. 23:26
rfc822_date = 'Wed, 21 Oct 2015 07:28:00 GMT'
timestamp = email.utils.mktime_tz((email.utils.parsedate_tz(rfc822_date))) --> 1445412480