PHP Classes

World Time Class for PHP 5: Retrieve the current time from a NTP server

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 846 All time: 4,109 This week: 140Up
Version License PHP version Categories
world-time-php-5 1GNU Lesser Genera...5.0Networking, PHP 5, Time and Date


This class can retrieve the current time from a NTP server.

It connects to a NTP (Network Time Protocol) server and retrieves the current time.

The class may try different servers from an internal list until one provides a response.

The class returns the current time as an integer epoch value.

Innovation Award
PHP Programming Innovation award nominee
October 2011
Number 2

Prize: One copy of the Zend Studio
NTP is a protocol for retrieving the current time from a time server machine.

It is used frequently to synchronize the time between machines so they all are set to a more accurate value of the current time.

This class can access a NTP server and retrieve the current time for use of PHP applications.

Manuel Lemos
Picture of Jonathan Discipulo
  Performance   Level  
Name: Jonathan Discipulo is available for providing paid consulting. Contact Jonathan Discipulo .
Classes: 7 packages by
Country: Philippines Philippines
Age: 42
All time rank: 75512 in Philippines Philippines
Week rank: 264 Up4 in Philippines Philippines Up
Innovation award
Innovation award
Nominee: 2x


What is the best PHP check system date class?
Check system date if is correct

  • screenshot.jpg
  Files folder image Files  
File Role Description
Plain text file Class
Accessible without login Plain text file GNU-LGPL.txt Lic. License
Accessible without login Plain text file index.php Example index.php

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,109
This week:140Up
User Comments (1)
12 years ago (Abdullah Ibna Jafar)