I have never worked with ObjC but probably the operators are exactly the same:
upSeconds = `/usr/bin/cut -d. -f1 /proc/uptime`
seconds = upSeconds.chomp.to_i # remove "\n" at the end and pass to int (ms lost)
hours = seconds / (60*60)
minutes = (seconds - (hours * 60 * 60)) / 60