Re: [PHP] return a formatted difference between two dates

2006-04-18 Thread Richard Lynch
On Mon, April 17, 2006 8:55 pm, tedd wrote: As I understand it, it won't make any difference if you use strtotime() See: http://www.weberdev.com/strtotime Errr, yeah. Only problem is, he needs non-existent function that might be named timetostr which takes an elapsed time and turns it into a

Re: [PHP] return a formatted difference between two dates

2006-04-17 Thread Richard Lynch
On Fri, April 14, 2006 1:24 pm, jonathan wrote: is there a function to take a second count and return it as a formatted difference? like a date_diff('H hours i',6133) that uses date()'s formatting. I think he means something not unlike: function human_time($seconds){ $result = and .

Re: [PHP] return a formatted difference between two dates

2006-04-17 Thread tedd
At 6:17 PM -0500 4/17/06, Richard Lynch wrote: On Fri, April 14, 2006 1:24 pm, jonathan wrote: is there a function to take a second count and return it as a formatted difference? That, however, is probably not precisely what he wants, as it's WAY off in the months/years thing... :-)

RE: [PHP] return a formatted difference between two dates

2006-04-14 Thread Jay Blanchard
[snip] is there a function to take a second count and return it as a formatted difference? like a date_diff('H hours i',6133) that uses date()'s formatting. [/snip] http://www.php.net/mktime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php