Re: Data and time problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx
<virtualsoftware@xxxxxxxxx> 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux