Okay, I just ran into a problem. I thought my script was right but obviously there is an error in there somewhere. My script has just now come across a time that's over an hour old and instead of converting into hours, it prints "64 minute(s) ago". What am I doing wrong?
Your tests are in the wrong order. Check them in descending order, not increasing order. >60 will not fall through to >3600, because anything that's >3600 is >60.