| |
- __builtin__.object
-
- date
-
- datetime
- time
- timedelta
- tzinfo
class date(__builtin__.object) |
|
date(year, month, day) --> date object |
|
Methods defined here:
- __add__(...)
- x.__add__(y) <==> x+y
- __eq__(...)
- x.__eq__(y) <==> x==y
- __ge__(...)
- x.__ge__(y) <==> x>=y
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __gt__(...)
- x.__gt__(y) <==> x>y
- __hash__(...)
- x.__hash__() <==> hash(x)
- __le__(...)
- x.__le__(y) <==> x<=y
- __lt__(...)
- x.__lt__(y) <==> x<y
- __ne__(...)
- x.__ne__(y) <==> x!=y
- __radd__(...)
- x.__radd__(y) <==> y+x
- __reduce__(...)
- __reduce__() -> (cls, state)
- __repr__(...)
- x.__repr__() <==> repr(x)
- __rsub__(...)
- x.__rsub__(y) <==> y-x
- __str__(...)
- x.__str__() <==> str(x)
- __sub__(...)
- x.__sub__(y) <==> x-y
- ctime(...)
- Return ctime() style string.
- isocalendar(...)
- Return a 3-tuple containing ISO year, week number, and weekday.
- isoformat(...)
- Return string in ISO 8601 format, YYYY-MM-DD.
- isoweekday(...)
- Return the day of the week represented by the date.
Monday == 1 ... Sunday == 7
- replace(...)
- Return date with new specified fields.
- strftime(...)
- format -> strftime() style string.
- timetuple(...)
- Return time tuple, compatible with time.localtime().
- toordinal(...)
- Return proleptic Gregorian ordinal. January 1 of year 1 is day 1.
- weekday(...)
- Return the day of the week represented by the date.
Monday == 0 ... Sunday == 6
Data and other attributes defined here:
- __new__ = <built-in method __new__ of type object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- day = <attribute 'day' of 'datetime.date' objects>
- fromordinal = <built-in method fromordinal of type object>
- int -> date corresponding to a proleptic Gregorian ordinal.
- fromtimestamp = <built-in method fromtimestamp of type object>
- timestamp -> local date from a POSIX timestamp (like time.time()).
- max = datetime.date(9999, 12, 31)
- min = datetime.date(1, 1, 1)
- month = <attribute 'month' of 'datetime.date' objects>
- resolution = datetime.timedelta(1)
- today = <built-in method today of type object>
- Current date or datetime: same as self.__class__.fromtimestamp(time.time()).
- year = <attribute 'year' of 'datetime.date' objects>
|
class datetime(date) |
|
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. |
|
- Method resolution order:
- datetime
- date
- __builtin__.object
Methods defined here:
- __add__(...)
- x.__add__(y) <==> x+y
- __eq__(...)
- x.__eq__(y) <==> x==y
- __ge__(...)
- x.__ge__(y) <==> x>=y
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __gt__(...)
- x.__gt__(y) <==> x>y
- __hash__(...)
- x.__hash__() <==> hash(x)
- __le__(...)
- x.__le__(y) <==> x<=y
- __lt__(...)
- x.__lt__(y) <==> x<y
- __ne__(...)
- x.__ne__(y) <==> x!=y
- __radd__(...)
- x.__radd__(y) <==> y+x
- __reduce__(...)
- __reduce__() -> (cls, state)
- __repr__(...)
- x.__repr__() <==> repr(x)
- __rsub__(...)
- x.__rsub__(y) <==> y-x
- __str__(...)
- x.__str__() <==> str(x)
- __sub__(...)
- x.__sub__(y) <==> x-y
- 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].
sep is used to separate the year from the time, and defaults to 'T'.
- 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().
Data and other attributes defined here:
- __new__ = <built-in method __new__ of type object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- combine = <built-in method combine of type object>
- date, time -> datetime with same date and time fields
- fromtimestamp = <built-in method fromtimestamp of type object>
- timestamp[, tz] -> tz's local time from POSIX timestamp.
- hour = <attribute 'hour' of 'datetime.datetime' objects>
- max = datetime.datetime(9999, 12, 31, 23, 59, 59, 999999)
- microsecond = <attribute 'microsecond' of 'datetime.datetime' objects>
- min = datetime.datetime(1, 1, 1, 0, 0)
- minute = <attribute 'minute' of 'datetime.datetime' objects>
- now = <built-in method now of type object>
- [tz] -> new datetime with tz's local day and time.
- resolution = datetime.timedelta(0, 0, 1)
- second = <attribute 'second' of 'datetime.datetime' objects>
- tzinfo = <attribute 'tzinfo' of 'datetime.datetime' objects>
- utcfromtimestamp = <built-in method utcfromtimestamp of type object>
- timestamp -> UTC datetime from a POSIX timestamp (like time.time()).
- utcnow = <built-in method utcnow of type object>
- Return a new datetime representing UTC day and time.
Methods 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.
Monday == 1 ... Sunday == 7
- strftime(...)
- format -> strftime() style string.
- toordinal(...)
- Return proleptic Gregorian ordinal. January 1 of year 1 is day 1.
- weekday(...)
- Return the day of the week represented by the date.
Monday == 0 ... Sunday == 6
Data and other attributes inherited from date:
- day = <attribute 'day' of 'datetime.date' objects>
- fromordinal = <built-in method fromordinal of type object>
- int -> date corresponding to a proleptic Gregorian ordinal.
- month = <attribute 'month' of 'datetime.date' objects>
- today = <built-in method today of type object>
- Current date or datetime: same as self.__class__.fromtimestamp(time.time()).
- year = <attribute 'year' of 'datetime.date' objects>
|
class time(__builtin__.object) |
|
time([hour[, minute[, second[, microsecond[, tzinfo]]]]]) --> a time object
All arguments are optional. tzinfo may be None, or an instance of
a tzinfo subclass. The remaining arguments may be ints or longs. |
|
Methods defined here:
- __eq__(...)
- x.__eq__(y) <==> x==y
- __ge__(...)
- x.__ge__(y) <==> x>=y
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __gt__(...)
- x.__gt__(y) <==> x>y
- __hash__(...)
- x.__hash__() <==> hash(x)
- __le__(...)
- x.__le__(y) <==> x<=y
- __lt__(...)
- x.__lt__(y) <==> x<y
- __ne__(...)
- x.__ne__(y) <==> x!=y
- __nonzero__(...)
- x.__nonzero__() <==> x != 0
- __reduce__(...)
- __reduce__() -> (cls, state)
- __repr__(...)
- x.__repr__() <==> repr(x)
- __str__(...)
- x.__str__() <==> str(x)
- dst(...)
- Return self.tzinfo.dst(self).
- isoformat(...)
- Return string in ISO 8601 format, HH:MM:SS[.mmmmmm][+HH:MM].
- replace(...)
- Return time with new specified fields.
- strftime(...)
- format -> strftime() style string.
- tzname(...)
- Return self.tzinfo.tzname(self).
- utcoffset(...)
- Return self.tzinfo.utcoffset(self).
Data and other attributes defined here:
- __new__ = <built-in method __new__ of type object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- hour = <attribute 'hour' of 'datetime.time' objects>
- max = datetime.time(23, 59, 59, 999999)
- microsecond = <attribute 'microsecond' of 'datetime.time' objects>
- min = datetime.time(0, 0)
- minute = <attribute 'minute' of 'datetime.time' objects>
- resolution = datetime.timedelta(0, 0, 1)
- second = <attribute 'second' of 'datetime.time' objects>
- tzinfo = <attribute 'tzinfo' of 'datetime.time' objects>
|
|