Re: New Earth Time

From: Date: Fri, 18 Apr 2003 17:45:26 +0000
Subject: Re: New Earth Time
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144422@lists.php.net to get a copy of this message
On 18-Apr-2003 CPT John W. Holmes wrote: > Sounds like something a bunch of hippies made up... It's something client > side, so you should be able to get the source. > Yep. Those Sumerian hippies approx 3,000 BC. <?php function nettime($tt=0) { if (empty($tt)) $tt=time(); $sec=$tt % 86400; $fdeg=$sec / 240; $d=floor($fdeg); $m=($fdeg - $d) * 60; $str=sprintf('%03d&deg;%02d&acute;', $d, $m); return($str); } $now=time(); echo date('r', $now), '<br>', gmdate('r', $now), '<br>', nettime($now), '<P>'; /* Fri, 18 Apr 2003 12:43:24 -0500 Fri, 18 Apr 2003 17:43:24 +0000 265?51? */ ?> Regards, -- Don Read dread@texas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.

« previous php.general (#144422) next »