Posted by Dave Kelly on 01/15/06 19:40
Super Mango wrote:
> Hi everubody,
>
> I have a timestamp field in a mysql DB and I want to know how much time
> has past since that timestamp.
>
> is it possible?
> Say that I have this value in a variable -
> 1) how do I get the current system timestamp?
> 2) how do I subtract the first from the second?
>
> Thanks!
>
I can show you how to do it at a website down the wire using a bash
script. Should be adaptable to something local and PHP.
TIMESTAMP=$(date -d "`lynx -error_file=lynx_error -dump
-connect_timeout=20 $url/timestamp.txt`" +%s)
[Back to original message]
|