Home | Scripts | Tutorials | Books | Hosting | Forums | Links|

Navigation:

Home
Source code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links






 
 

SPONSORS



 
 

Atomic Time

 

<?php
$fp = fsockopen("time-a.nist.gov", 37);
if ($fp) {
fputs($fp, "\n");
$timevalue = fread($fp, 49);
fclose($fp);
}

$atomic_time = (abs(hexdec('7fffffff') - hexdec(bin2hex($timevalue)) - hexdec('7fffffff')) - 2208988800);
echo $atomic_time;
?>

This returns the time in the form of a timestamp.

-2208988800