von dp am 11.Februar 98 um 18:06:59:
From: alan
Subject: what time is it?
To: Multiple recipients of list DIRECT-L
We've half-done a shockwave where we needed better control over time. Our
site first checks into our web server to get the local time and then
calculates offset from there. Ours is a site where it appears that some
poor guy is flipping a coin eveyr 5 seconds for an entire year (some parts
are nont functional):
http://www.mcli.dist.maricopa.edu/mobius/flip/
Here is the little CGI we used to get our local time; you can format it to
return what ever portions you want to access:
--------------------------------------------------
#!/usr/local/bin/perl
($Second, $Minute, $Hour, $DayOfMonth, $Month, $Year, $WeekDay, $DayOfYear,
$IsDST) = localtime(time);
$RealMonth = $Month + 1;
print "content-type: text/plain\n\n";
print "$RealMonth,$DayOfMonth,$Hour,$Minute,$Second";
------------------------------------------------------------
You can pull the exact time by doing a getNetText to the atomic clock at:
http://132.163.135.130:14/
The format is explained at:
http://www.bldrdoc.gov/doc-tour/atomic_clock.html
------------------------------------------------------------
D. Plänitz