Hello,
I'm happy to see that the output format of the date/time values has been
changed to better human readable format. But I think that it would be a
better idea to use a function for this.
e.q.:
function prettydate( $date_var )
{
$YY = "$date_var[2]$date_var[3]";
$MM = "$date_var[4]$date_var[5]";
$DD = "$date_var[6]$date_var[7]";
$hh = "$date_var[8]$date_var[9]";
$mm = "$date_var[10]$date_var[11]";
return "$MM/$DD/$YY $hh:$mm\n";
}
and then in the source code:
...
print " <TD align=center>\n";
$date_var=$row[2];
print prettydate($date_var);
print " </TD>\n";
...
If someone wants to change the output format, it can be done by changing it
at only one place.
|