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`
379 380 381 382 383 |
# File 'lib/timecode.rb', line 379 def to_s vs = value_parts vs[0] = vs[0] % 100 # Rollover any values > 99 (@drop_frame ? WITH_FRAMES_DF : WITH_FRAMES) % vs end |