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

Class Time

source code

object --+
         |
        Time

adds null capable datetime.time 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
 
replace(self, hour=None, minute=None, second=None, microsecond=None, delta_hour=0, delta_minute=0, delta_second=0) source code
 
strftime(self, format) source code
 
time(self) source code
 
tofloat(self)
returns Time as a float
source code

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

Class Methods [hide private]
 
fromfloat(cls, num)
2.5 == 2 hours, 30 minutes, 0 seconds, 0 microseconds
source code
 
strptime(cls, time_string, format=None) source code
Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, hour=None, minute=0, second=0, microsecond=0)
hour may be a datetime.time or a str(Time)
source code
 
now()
only accurate to milliseconds
source code
Class Variables [hide private]
  max = Time(23, 59, 59, 999000)
  min = Time(0, 0, 0, 0)
  _null_time = Time()
Properties [hide private]
  _time

Inherited from object: __class__

Method Details [hide private]

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

source code 

hour may be a datetime.time or a str(Time)

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)