home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
ONLINE
/
OS2WWW42
/
SYS402.R4
/
CGI-BIN
/
SHOWPERL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-05-01
|
655b
|
35 lines
extproc perl -x
#!perl
print "Content-type: text/html\n";
print "\n";
@local = localtime();
@gmt = gmtime();
@cs = @gmt;
$cs[2] = $cs[2] + 2;
if ($cs[2] > 23)
{
$cs[2] = $cs[2] - 24;
}
print "<html>";
print "<table border=1>";
print "<tr>";
print "<th colspan=3><h2>Time Zones</h2>";
print "<tr>";
print "<td><b>Local</b>";
print "<td><b>GMT</b>";
print "<td><b>CompuSource</b>";
print "<tr>";
printf("<td>%02d:%02d:%02d\n", $local[2], $local[1], $local[0]);
printf("<td>%02d:%02d:%02d\n", $gmt[2], $gmt[1], $gmt[0]);
printf("<td>%02d:%02d:%02d\n", $cs[2], $cs[1], $cs[0]);
print "</table>";
print "</html>";