Module datetime :: Class timedelta
[hide private]
[frames] | no frames]

type timedelta

object --+
         |
        timedelta

Difference between two datetime values.

Instance Methods [hide private]
 
__abs__(x)
abs(x)
 
__add__(x, y)
x+y
 
__div__(x, y)
x/y
 
__eq__(x, y)
x==y
 
__floordiv__(x, y)
x//y
 
__ge__(x, y)
x>=y
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__gt__(x, y)
x>y
 
__hash__(x)
hash(x)
 
__le__(x, y)
x<=y
 
__lt__(x, y)
x<y
 
__mul__(x, y)
x*y
 
__ne__(x, y)
x!=y
 
__neg__(x)
-x
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__nonzero__(x)
x != 0
 
__pos__(x)
+x
 
__radd__(x, y)
y+x
 
__rdiv__(x, y)
y/x
(cls, state)
__reduce__()
 
__repr__(x)
repr(x)
 
__rfloordiv__(x, y)
y//x
 
__rmul__(x, y)
y*x
 
__rsub__(x, y)
y-x
 
__str__(x)
str(x)
 
__sub__(x, y)
x-y
Class Variables [hide private]
  max = datetime.timedelta(999999999, 86399, 999999)
  min = datetime.timedelta(-999999999)
  resolution = datetime.timedelta(0, 0, 1)
Properties [hide private]
  days
Number of days.
  microseconds
Number of microseconds (>= 0 and less than 1 second).
  seconds
Number of seconds (>= 0 and less than 1 day).
Method Details [hide private]

__getattribute__(...)

 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__

__hash__(x)
(Hashing function)

 

hash(x)

Overrides: object.__hash__

__new__(T, S, ...)

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

__reduce__()

 
Returns: (cls, state)
Overrides: object.__reduce__

__repr__(x)
(Representation operator)

 

repr(x)

Overrides: object.__repr__

__str__(x)
(Informal representation operator)

 

str(x)

Overrides: object.__str__