标准类库-日期类型之datetime模块
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
class datetime.time(hour=0, minute=0, second=0, microsecond=0, tzinfo=None)17
time.replace([hour[, minute[, second[, microsecond[, tzinfo]]]]])18
篇幅问题,采用网盘链接分享: