You are here: Re: Calculate time between 2 timestamps « PHP Programming Language « IT news, forums, messages
Re: Calculate time between 2 timestamps

Posted by Blayde on 08/03/06 20:17

bobzimuta wrote:
> > What's the easiest way in php to calculate the hour and minutes (HH:MM)
> > between 2 times? (unix timestamps)
>
> A Unix timestamp is in seconds. Subtract the two and you have the
> difference between the two in seconds... Need more?

It would also be wise to take the absolute value, abs(), of the
subtraction in case of a negative result
-Blayde

 

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

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