code: def tc_to_frames(self, timecode):
          
          hours, minutes, seconds, frames = map(int, timecode.split(':'))
  
          ffps = float(self._framerate)
  
          if self.drop_frame:
              # Number of drop frames is 6% of framerate rounded to nearest
              # integer
              drop_frames = int(round(ffps * .066666))
          else:
              drop_frames = 0
  
          # We don't need the exact framerate anymore, we just need it rounded to
          # nearest integer
          ifps = self._int_framerate
  
          # Number of frames per hour (non-drop)
          hour_frames = ifps * 60 * 60
  
          # Number of frames per minute (non-drop)
          minute_frames = ifps * 60
  
          # Total number of minutes
          total_minutes = (60 * hours) + minutes
  
          frame_number = \
              ((hour_frames * hours) + (minute_frames * minutes) +
               (ifps * seconds) + frames) - \
              (drop_frames * (total_minutes - (total_minutes // 10)))
  
          frames = frame_number + 1
  
          return frames
docs: Converts the given timecode to frames