How can I specify how many levels deep the timespan() function in Codeigniter should go?

Posted by Shamoon on Stack Overflow See other posts from Stack Overflow or by Shamoon
Published on 2010-04-09T22:40:33Z Indexed on 2010/04/09 22:43 UTC
Read the original article Hit count: 271

Filed under:
|

I'm using Codeigniter's "timespan()" function to give a human readable phrase of how much time has elapsed since an event: "5 days, 3 hours, 12 minutes, 1 second", but I don't need to go down to the minute or second level.

Is there any way to turn that off?

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about php