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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__new__(T,
S,
...)
Returns:
a new object with type S, a subtype of T |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
astimezone(...)
tz -> convert to local time in new timezone tz |
|
|
|
combine(...)
date, time -> datetime with same date and time fields |
|
|
|
ctime(...)
Return ctime() style string. |
|
|
|
date(...)
Return date object with same year, month and day. |
|
|
|
dst(...)
Return self.tzinfo.dst(self). |
|
|
|
fromtimestamp(...)
timestamp[, tz] -> tz's local time from POSIX timestamp. |
|
|
|
isoformat(...)
[sep] -> string in ISO 8601 format,
YYYY-MM-DDTHH:MM:SS[.mmmmmm][+HH:MM]. |
|
|
|
now(...)
[tz] -> new datetime with tz's local day and time. |
|
|
|
replace(...)
Return datetime with new specified fields. |
|
|
|
strptime(...)
string, format -> new datetime parsed from a string (like
time.strptime()). |
|
|
|
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). |
|
|
|
utcfromtimestamp(...)
timestamp -> UTC datetime from a POSIX timestamp (like
time.time()). |
|
|
|
utcnow(...)
Return a new datetime representing UTC day and time. |
|
|
|
utcoffset(...)
Return self.tzinfo.utcoffset(self). |
|
|
|
utctimetuple(...)
Return UTC time tuple, compatible with time.localtime(). |
|
|
Inherited from date :
fromordinal ,
isocalendar ,
isoweekday ,
strftime ,
today ,
toordinal ,
weekday
Inherited from object :
__delattr__ ,
__init__ ,
__reduce_ex__ ,
__setattr__
|