Module datetime :: Class date
[frames | no frames]

Type date

object --+
         |
        date

Known Subclasses:
datetime

date(year, month, day) --> date object
Method Summary
  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.
  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.
  weekday(...)
Return the day of the week represented by the date.
    Inherited from type
  fromordinal(...)
int -> date corresponding to a proleptic Gregorian ordinal.
  fromtimestamp(...)
timestamp -> local date from a POSIX timestamp (like time.time()).
  today(...)
Current date or datetime: same as self.__class__.fromtimestamp(time.time()).

Class Variable Summary
getset_descriptor day = <attribute 'day' of 'datetime.date' objects>
date max = datetime.date(9999, 12, 31)
date min = datetime.date(1, 1, 1)
getset_descriptor month = <attribute 'month' of 'datetime.date' objects>
timedelta resolution = datetime.timedelta(1)
getset_descriptor year = <attribute 'year' of 'datetime.date' objects>

Method Details

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

Class Variable Details

day

Type:
getset_descriptor
Value:
<attribute 'day' of 'datetime.date' objects>                           

max

Type:
date
Value:
datetime.date(9999, 12, 31)                                            

min

Type:
date
Value:
datetime.date(1, 1, 1)                                                 

month

Type:
getset_descriptor
Value:
<attribute 'month' of 'datetime.date' objects>                         

resolution

Type:
timedelta
Value:
datetime.timedelta(1)                                                  

year

Type:
getset_descriptor
Value:
<attribute 'year' of 'datetime.date' objects>                          

Generated by Epydoc 2.1 on Mon Oct 9 12:40:59 2006 http://epydoc.sf.net