Package dbf :: Module ver_2 :: Class Date
[hide private]
[frames] | no frames]

Class Date

source code

object --+
         |
        Date

adds null capable datetime.date constructs

Instance Methods [hide private]
 
__add__(self, other) source code
 
__eq__(self, other) source code
 
__format__(self, spec)
default object formatter
source code
 
__getattr__(self, name) source code
 
__ge__(self, other) source code
 
__gt__(self, other) source code
 
__hash__(self)
hash(x)
source code
 
__le__(self, other) source code
 
__lt__(self, other) source code
 
__ne__(self, other) source code
 
__nonzero__(self) source code
 
__radd__(self, other) source code
 
__rsub__(self, other) source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
__sub__(self, other) source code
 
date(self) source code
 
replace(self, year=None, month=None, day=None, delta_year=0, delta_month=0, delta_day=0) source code
 
strftime(self, format) source code
 
ymd(self) source code

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

Class Methods [hide private]
 
fromordinal(cls, number) source code
 
fromtimestamp(cls, timestamp) source code
 
fromymd(cls, yyyymmdd) source code
 
strptime(cls, date_string, format=None) 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 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)
  _null_date = Date()
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 or date/month/day should all be appropriate integers

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

__format__(self, spec)

source code 

default object formatter

Overrides: object.__format__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)