Python 标准类库-日期类型之datetime模块
标准类库-日期类型之datetime模块
by:授客 QQ:1033553122
class datetime.date(year, month, day) 7
classmethod date.fromtimestamp(timestamp) 7
date.replace(year, month, day) 9
class datetime.datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None) 11
classmethod datetime.today() 11
classmethod datetime.now(tz=None) 11
classmethod datetime.utcnow() 12
classmethod datetime.fromtimestamp(timestamp, tz=None) 12
classmethod datetime.utcfromtimestamp(timestamp) 12
classmethod datetime.fromordinal(ordinal) 12
classmethod datetime.combine(date, time) 12
classmethod datetime.strptime(date_string, format) 12
datetime.replace([year[, month[, day[, hour[, minute[, second[, microsecond[, tzinfo]]]]]]]]) 15
datetime.isoformat(sep='T') 16
datetime.__format__(format) 17
class datetime.time(hour=0, minute=0, second=0, microsecond=0, tzinfo=None) 17
time.replace([hour[, minute[, second[, microsecond[, tzinfo]]]]]) 18
篇幅问题,采用网盘链接分享:
作者:授客
微信/QQ:1033553122
全国软件测试QQ交流群:7156436
Git地址:https://gitee.com/ishouke
友情提示:限于时间仓促,文中可能存在错误,欢迎指正、评论!
作者五行缺钱,如果觉得文章对您有帮助,请扫描下边的二维码打赏作者,金额随意,您的支持将是我继续创作的源动力,打赏后如有任何疑问,请联系我!!!
微信打赏
支付宝打赏 全国软件测试交流QQ群