Timecode

class timecode.Timecode(timecode: str | int | Timecode, mode: CountingMode | None = None, rate: int | None = None)

Timecode representing a given frame number and rate

DEFAULT_MODE

alias of NonDropFrame

resample(*, mode: CountingMode | None = None, rate: int | None = None)

Create a new timecode object resampled to a new rate or frame counting mode

property frame_number: int

The timecode as a frame number

property rate: int

The rate (per second) of this timecode

property mode: CountingMode

The counting mode used with this timecode

property hours: int

The hours elapsed

property minutes: int

The minutes per hour elapsed

property seconds: int

The seconds per minute elapsed

property frames: int

The frames per second elapsed

property is_negative: bool

Is the timecode negative

property is_positive: bool

Is the timecode positive