I have a number of seconds. Let\'s say 270921. How can I display that number saying it is xx days, yy hours, zz minutes, ww seconds?
If you're using Rails, there is an easy way if you don't need the precision:
time_ago_in_words 270921.seconds.from_now # => 3 days