日期时间格式化

date, datetime, and time objects all support a strftime(format) method, to create a string representing the time under the control of an explicit format string. the sdate, datetime, and time trptime() class method creates a object from a string representing a date and time
原文地址:https://www.cnblogs.com/fly-xiang-zhao/p/4076554.html