PHP Classes

Hour_Diff: Utility to get the the server time difference

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 797 All time: 4,288 This week: 275Up
Version License Categories
hours_difference 1.0GNU General Publi...Time and Date


Utility class to get the the server time difference.

If your local time is *behind* the server time, then change the "+" to a "-" in the example variable $h.

To adjust the format of the date, see the list of variables at the official PHP site (

Picture of Güayoyo
Name: Güayoyo is available for providing paid consulting. Contact Güayoyo .
Classes: 5 packages by
Country: Italy Italy
Age: 65
All time rank: 43314 in Italy Italy
Week rank: 398 Up23 in Italy Italy Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file diffhours.php Class Class and example file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,288
This week:275Up