08
Jun
Calculating the difference between timestamps in PHP
Filed Under (PHP) by Subesh Pokhrel on 08-06-2008
Tagged Under : PHP, time function
Most of us, programmer have conditions of calculating the difference between timestamps, i.e the difference between now and the timestamp from mysql result. The logic for this is pretty simple. Just convert the two timestamps to Unix time format and take the difference between the two. Next convert the difference into corresponding days,hour,minutes or in any unit you want to. Read the rest of this entry »
![[del.icio.us]](http://subesh.com.np/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://subesh.com.np/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://subesh.com.np/wp-content/plugins/bookmarkify/facebook.png)
![[Google]](http://subesh.com.np/wp-content/plugins/bookmarkify/google.png)
![[MySpace]](http://subesh.com.np/wp-content/plugins/bookmarkify/myspace.png)
![[StumbleUpon]](http://subesh.com.np/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Technorati]](http://subesh.com.np/wp-content/plugins/bookmarkify/technorati.png)
![[Windows Live]](http://subesh.com.np/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://subesh.com.np/wp-content/plugins/bookmarkify/yahoo.png)

