realSecondsToFrames method

int realSecondsToFrames(
  1. double seconds
)

returns real frame count from seconds of real time and does not account for drop frames if seconds > 24 hours, rolls over

Implementation

int realSecondsToFrames(double seconds) {
  seconds = rollover(seconds);
  return (seconds * fps).floor();
}