Date Calculation
| From: | Mike Tuller | Date: | Thu, 28 Oct 2004 18:51:20 +0000 |
| Subject: | Date Calculation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-200568@lists.php.net to get a copy of this message | ||
I have a shell script that inserts the unix date and time that the script ran into a MySql database. For example Thu Oct 28 13:41:33 CDT 2004. I would like to have my web page do the math so that it displays the time since the script ran. How can I do the math so that the web page will display something like the script ran 1500 seconds ago.
Thanks,
mike