Method: Timecode.at
- Defined in:
- lib/timecode.rb
.at(hrs, mins, secs, frames, with_fps = DEFAULT_FPS) ⇒ Object
Initialize a Timecode object at this specfic timecode
181 182 183 184 185 |
# File 'lib/timecode.rb', line 181 def at(hrs, mins, secs, frames, with_fps = DEFAULT_FPS) validate_atoms!(hrs, mins, secs, frames, with_fps) total = (hrs*(60*60*with_fps) + mins*(60*with_fps) + secs*with_fps + frames).round new(total, with_fps) end |