datetime.date

datetime :: date :: Class date |
[hide private]
[frames] | no frames]

# Class date

    object --+
             |
            date

Known Subclasses:
  datetime

date(year, month, day) --> date object

Instance Methods | [hide private]
__add__(x, y) x+y |
__eq__(x, y) x==y |
__ge__(x, y) x>=y |
__getattribute__(...) x.__getattribute__('name') <==> x.name |
__gt__(x, y) x>y |
__hash__(x) hash(x) |
__le__(x, y) x<=y |
__lt__(x, y) x<y |
__ne__(x, y) x!=y |
__new__(T, S, ...) Returns: a new object with type S, a subtype of T |
__radd__(x, y) y+x |
__reduce__() Returns: (cls, state) |
__repr__(x) repr(x) |
__rsub__(x, y) y-x |
__str__(x) str(x) |
__sub__(x, y) x-y |
ctime(...) Return ctime() style string. |
fromordinal(...) int -> date corresponding to a proleptic Gregorian ordinal. |
fromtimestamp(...) timestamp -> local date from a POSIX timestamp (like time.time()). |
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. |
replace(...) Return date with new specified fields. |
strftime(...) format -> strftime() style string. |
timetuple(...) Return time tuple, compatible with time.localtime(). |
today(...) Current date or datetime: same as self.__class__.fromtimestamp(time.time()). |
toordinal(...) Return proleptic Gregorian ordinal. |
weekday(...) Return the day of the week represented by the date. |
Inherited from `object`: `__delattr__`, `__init__`, `__reduce_ex__`, `__setattr__`

Class Variables | [hide private]
| max = `datetime.date(9999, 12, 31)`
| min = `datetime.date(1, 1, 1)`
| resolution = `datetime.timedelta(1)`

Properties | [hide private]
| day
| month
| year
Inherited from `object`: `__class__`

Method Details | [hide private]

### __getattribute__(...) |
x.__getattribute__('name') <==> x.name Overrides: object.__getattribute__

### __hash__(x) (Hashing function) |
hash(x) Overrides: object.__hash__

### __new__(T, S, ...) |
  Returns:
      a new object with type S, a subtype of T
Overrides: object.__new__

### __reduce__() |
  helper for pickle Returns:
      (cls, state)
Overrides: object.__reduce__

### __repr__(x) (Representation operator) |
repr(x) Overrides: object.__repr__

### __str__(x) (Informal representation operator) |
str(x) Overrides: object.__str__

### isoweekday(...) |
Return the day of the week represented by the date. Monday == 1 ... Sunday == 7

### 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