Package dbf :: Module dates :: Class Date
[hide private]

Class Date

source code

object --+
         |
        Date

adds null capable datetime.date constructs

Instance Methods [hide private]
 
__add__(yo, other) source code
 
__eq__(yo, other) source code
 
__getattr__(yo, name) source code
 
__ge__(yo, other) source code
 
__gt__(yo, other) source code
 
__hash__(yo)
hash(x)
source code
 
__le__(yo, other) source code
 
__lt__(yo, other) source code
 
__ne__(yo, other) source code
 
__nonzero__(yo) source code
 
__radd__(yo, other) source code
 
__rsub__(yo, other) source code
 
__repr__(yo)
repr(x)
source code
 
__str__(yo)
str(x)
source code
 
__sub__(yo, other) source code
 
date(yo) source code
 
strftime(yo, format) source code
 
ymd(yo) source code

Inherited from object: __delattr__, __getattribute__, __init__, __reduce__, __reduce_ex__, __setattr__

Class Methods [hide private]
 
fromordinal(cls, number) source code
 
fromtimestamp(cls, timestamp) source code
 
fromymd(cls, yyyymmdd) source code
 
today(cls) source code
Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, year=None, month=0, day=0)
date should be either a datetime.date, a string in yyyymmdd format, or date/month/day should all be appropriate integers
source code
Class Variables [hide private]
  max = Date(9999, 12, 31)
  min = Date(1, 1, 1)
Properties [hide private]
  _date

Inherited from object: __class__

Method Details [hide private]

__new__(cls, year=None, month=0, day=0)
Static Method

source code 

date should be either a datetime.date, a string in yyyymmdd format, or date/month/day should all be appropriate integers

Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__hash__(yo)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

__repr__(yo)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(yo)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)