PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!

  Author Author  
Picture of Jonathan Discipulo
Name: Jonathan Discipulo <contact>
Classes: 7 packages by
Country: Philippines Philippines
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

  Classes of Jonathan Discipulo  >  World Time Class for PHP 5  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: World Time Class for PHP 5
Base name: world-time-php-5
Description: Retrieve the current time from a NTP server
Version: 1
PHP version: 5.0
License: GNU Lesser General Public License (LGPL)
 
  Groups   Screenshots Screenshots   Applications   Related pages   Files Files  

  Groups  
Group folder image Networking Networking protocols, clients and servers View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Time and Date Time and date values, formats and conversion View top rated classes

  Files folder image Screenshots  
screenshot.jpg
File Role Description
Accessible without login Image file screenshot.jpg Screen screenshot.jpg


  Recommendations  

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


  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

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.


  Related pages  
Classes for PHP
Classes for PHP

  Files folder image Files  
File Role Description
Plain text file class.world.time.php Class class.world.time.php
Accessible without login Plain text file GNU-LGPL.txt Lic. License
Accessible without login Plain text file index.php Example index.php

Install with Composer Install with Composer - Download Download all files: world-time-php-5.tar.gz world-time-php-5.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.