(self, timecode: FrameTimecode)
| 318 | """Print timecodes in seconds SSS.sss.""" |
| 319 | |
| 320 | def format(self, timecode: FrameTimecode) -> str: |
| 321 | if self == TimecodeFormat.FRAMES: |
| 322 | return str(timecode.frame_num) |
| 323 | if self == TimecodeFormat.TIMECODE: |
| 324 | return timecode.get_timecode() |
| 325 | if self == TimecodeFormat.SECONDS: |
| 326 | return f"{timecode.seconds:.3f}" |
| 327 | raise RuntimeError("Unhandled format specifier.") |
| 328 | |
| 329 | |
| 330 | class FcpFormat(Enum): |