You are here: Re: [PHP] Data and time problem « PHP « IT news, forums, messages
Re: [PHP] Data and time problem

Posted by Kalinga on 03/17/05 15:17

store the date as a 'unix timestamp', so you can easily compare
the stored timestamp with the current timestamp, by doing a
simple calculation you can get the duration in minutes without
a headache.

http://www.php.net/time

vk.


On Thu, 17 Mar 2005 14:32:48 +0200, virtualsoftware@gmail.com
<virtualsoftware@gmail.com> wrote:
> Hi,
> I have a mysql database where i store a user name and date when he registered. The date format is like this 2005-03-17 02:41:51.
>
> How can i found out how many minutes passed from the date he registered till now.
>
> Thanks in advance for your help !
>


--
vk.

 

Navigation:

[Reply to this 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

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