Navigation :

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




Site Sponsors :

Bookmark :

Links :

domain names
programmershelp
dropshippers

Downloads :

Misc :

Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming

Valid XHTML 1.0 Transitional


Valid CSS!


Atomic time

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