Package nflvid :: Class PlayTime
[frames] | no frames]

Class PlayTime

source code

object --+
         |
        PlayTime

Represents a footage time point, in the format HH:MM:SS:MM

Instance Methods
 
__init__(self, point)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
seconds(self)
Returns this time point rounded to the nearest second.
source code
 
fractional(self)
Returns this time point as fractional seconds based on milliseconds.
source code
 
__cmp__(self, other) source code
 
__sub__(self, other)
Returns the difference rounded to nearest second between two time points.
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, point)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__sub__(self, other)
(Subtraction operator)

source code 

Returns the difference rounded to nearest second between two time points. The 'other' time point must take place before the current time point.

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)