Method: Timecode#to_s
- Defined in:
- lib/timecode.rb
#to_s ⇒ Object
Get formatted SMPTE timecode. Hour count larger than 99 will roll over to the next remainder (129 hours will produce “29:00:00:00:00”). If you need the whole hour count use ‘to_s_without_rollover`
329 330 331 332 333 |
# File 'lib/timecode.rb', line 329 def to_s vs = value_parts vs[0] = vs[0] % 100 # Rollover any values > 99 WITH_FRAMES % vs end |