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

Class DateTime

source code

object --+
         |
        DateTime

adds null capable datetime.datetime 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
 
datetime(self) source code
 
replace(self, year=None, month=None, day=None, hour=None, minute=None, second=None, microsecond=None, delta_year=0, delta_month=0, delta_day=0, delta_hour=0, delta_minute=0, delta_second=0) source code
 
strftime(self, format) source code
 
time(self) source code

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

Class Methods [hide private]
 
combine(cls, date, time) source code
 
fromordinal(cls, number) source code
 
fromtimestamp(cls, timestamp) source code
 
now(cls)
only accurate to milliseconds
source code
 
strptime(cls, datetime_string, format=None) source code
 
utcnow(cls) 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, hour=0, minute=0, second=0, microsecond=0)
year may be a datetime.datetime
source code
Class Variables [hide private]
  max = DateTime( 9999, 12, 31, 23, 59, 59, 999000)
  min = DateTime( 1, 1, 1, 0, 0, 0, 0)
  _null_datetime = DateTime()
Properties [hide private]
  _datetime

Inherited from object: __class__

Method Details [hide private]

__new__(cls, year=None, month=0, day=0, hour=0, minute=0, second=0, microsecond=0)
Static Method

source code 

year may be a datetime.datetime

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)