Reply to Re: arithmetics with timestamp?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация