code: def convert_timeval(seconds_since_epoch):
      
      frac, whole = math.modf(seconds_since_epoch)
      microseconds = math.floor(frac * 1000000)
      seconds = math.floor(whole)
      return seconds, microseconds
docs: Convert time into C style timeval.