datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])
The year, month and day arguments are required. tzinfo may be None, or an instance of a tzinfo subclass. The remaining arguments may be ints or longs.
combine
(type: builtin_function_or_method
)
<built-in method combine of type object at 0x40764c60>
day
(type: getset_descriptor
)
<attribute 'day' of 'datetime.date' objects>
fromordinal
(type: builtin_function_or_method
)
<built-in method fromordinal of type object at 0x40764c60>
fromtimestamp
(type: builtin_function_or_method
)
<built-in method fromtimestamp of type object at 0x40764c60>
hour
(type: getset_descriptor
)
<attribute 'hour' of 'datetime.datetime' objects>
max
(type:
datetime
)
datetime.datetime(9999, 12, 31, 23, 59, 59, 999999)
microsecond
(type: getset_descriptor
)
<attribute 'microsecond' of 'datetime.datetime' objects>
min
(type:
datetime
)
datetime.datetime(1, 1, 1, 0, 0)
minute
(type: getset_descriptor
)
<attribute 'minute' of 'datetime.datetime' objects>
month
(type: getset_descriptor
)
<attribute 'month' of 'datetime.date' objects>
now
(type: builtin_function_or_method
)
<built-in method now of type object at 0x40764c60>
resolution
(type:
timedelta
)
datetime.timedelta(0, 0, 1)
second
(type: getset_descriptor
)
<attribute 'second' of 'datetime.datetime' objects>
today
(type: builtin_function_or_method
)
<built-in method today of type object at 0x40764c60>
tzinfo
(type: getset_descriptor
)
<attribute 'tzinfo' of 'datetime.datetime' objects>
utcfromtimestamp
(type: builtin_function_or_method
)
<built-in method utcfromtimestamp of type object at 0x40764c60>
utcnow
(type: builtin_function_or_method
)
<built-in method utcnow of type object at 0x40764c60>
year
(type: getset_descriptor
)
<attribute 'year' of 'datetime.date' objects>
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).
isocalendar(...)
Return a 3-tuple containing ISO year, week number, and weekday.
isoformat(...)
[sep] -> string in ISO 8601 format, YYYY-MM-DDTHH:MM:SS[.mmmmmm][+HH:MM].
sep is used to separate the year from the time, and defaults to T
.
isoweekday(...)
Return the day of the week represented by the date. Monday == 1 ... Sunday == 7
replace(...)
Return datetime with new specified fields.
strftime(...)
format -> strftime() style string.
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.
toordinal(...)
Return proleptic Gregorian ordinal. January 1 of year 1 is day 1.
tzname(...)
Return self.tzinfo.tzname(self).
utcoffset(...)
Return self.tzinfo.utcoffset(self).
utctimetuple(...)
Return UTC time tuple, compatible with time.localtime().
weekday(...)
Return the day of the week represented by the date. Monday == 0 ... Sunday == 6
There are no known subclasses.