Method Summary |
|
astimezone (...)
tz -> convert to local time in new timezone tz |
|
ctime (...)
Return ctime() style string. |
|
date (...)
Return date object with same year, month and day. |
|
dst (...)
Return self.tzinfo.dst(self). |
|
isoformat (...)
[sep] -> string in ISO 8601 format,
YYYY-MM-DDTHH:MM:SS[.mmmmmm][+HH:MM]. |
|
replace (...)
Return datetime with new specified fields. |
|
time (...)
Return time object with same time but with tzinfo=None. |
|
timetuple (...)
Return time tuple, compatible with time.localtime(). |
|
timetz (...)
Return time object with same time and tzinfo. |
|
tzname (...)
Return self.tzinfo.tzname(self). |
|
utcoffset (...)
Return self.tzinfo.utcoffset(self). |
|
utctimetuple (...)
Return UTC time tuple, compatible with time.localtime(). |
Inherited from date |
|
isocalendar (...)
Return a 3-tuple containing ISO year, week number, and weekday. |
|
isoweekday (...)
Return the day of the week represented by the date. |
|
strftime (...)
format -> strftime() style string. |
|
toordinal (...)
Return proleptic Gregorian ordinal. |
|
weekday (...)
Return the day of the week represented by the date. |
Inherited from type |
|
combine (...)
date, time -> datetime with same date and time fields |
|
fromordinal (...)
int -> date corresponding to a proleptic Gregorian ordinal. |
|
fromtimestamp (...)
timestamp[, tz] -> tz's local time from POSIX timestamp. |
|
now (...)
[tz] -> new datetime with tz's local day and time. |
|
today (...)
Current date or datetime: same as
self.__class__.fromtimestamp(time.time()). |
|
utcfromtimestamp (...)
timestamp -> UTC datetime from a POSIX timestamp (like
time.time()). |
|
utcnow (...)
Return a new datetime representing UTC day and time. |
Class Variable Summary |
getset_descriptor |
hour = <attribute 'hour' of 'datetime.datetime' objects>
|
datetime |
max = datetime.datetime(9999, 12, 31, 23, 59, 59, 999999...
|
getset_descriptor |
microsecond = <attribute 'microsecond' of 'datetime.date...
|
datetime |
min = datetime.datetime(1, 1, 1, 0, 0)
|
getset_descriptor |
minute = <attribute 'minute' of 'datetime.datetime' obje...
|
timedelta |
resolution = datetime.timedelta(0, 0, 1)
|
getset_descriptor |
second = <attribute 'second' of 'datetime.datetime' obje...
|
getset_descriptor |
tzinfo = <attribute 'tzinfo' of 'datetime.datetime' obje...
|
Inherited from date |
getset_descriptor |
day = <attribute 'day' of 'datetime.date' objects>
|
getset_descriptor |
month = <attribute 'month' of 'datetime.date' objects>
|
getset_descriptor |
year = <attribute 'year' of 'datetime.date' objects>
|