import time
timestamp = items.get('created')
time_local = time.localtime(int(timestamp))
pub_date = time.strftime("%Y-%m-%d", time_local)
pub_time = time.strftime("%H:%M:%S", time_local)
可以得到日期:pub_time = 2018-01-20 pub_time = 12:05:22
import time
timestamp = items.get('created')
time_local = time.localtime(int(timestamp))
pub_date = time.strftime("%Y-%m-%d", time_local)
pub_time = time.strftime("%H:%M:%S", time_local)
可以得到日期:pub_time = 2018-01-20 pub_time = 12:05:22