time

1 print(time.strptime(account_data['expire_date'], "%Y-%m-%d"))#把%Y-%m-%d格式的换成元组格式
2 print(time.mktime(time.strptime(account_data['expire_date'], "%Y-%m-%d")))#把元组格式的换成时间戳
A wise man thinks all that he says, a fool says all that he thinks.
原文地址:https://www.cnblogs.com/BernieChen/p/14378787.html