All is well 3 idiots

AC小小常

【Python函数与模块】(16)标准模块--DateTime模块

函数/变量 描述
timedelta 对日期进行加减操作时使用
date date类表示一个日期
datetime.strftime 将datetime对象格式化成字符串
datetime.strptime 将字符串按照一定的格式转换成datetime对象
time 表示一个时间类
datetime.now 系统的当前时间
day Datetime对象的属性,类似的还有minute,hour等
days Timedelta的属性,类似的还有minuts,hours等

posted on 2020-04-11 10:34  AC小小常  阅读(145)  评论(0编辑  收藏  举报

导航