
August 29th, 1999, 05:39 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Here is a lengthy little sub that I use, its part of my cut and paste templates that I use when I write...
sub get_time
{
$time=time;
$time2=localtime($time);
($wday, $month, $day, $time, $year) = split(" ",$time2,5);
#$year = substr($year,2,2); # Remove This Line For 4 digit Years
$month = uc($month);
if ($month eq "DEC"){$month="12";}
elsif ($month eq "NOV"){$month="11";}
elsif ($month eq "OCT"){$month="10";}
elsif ($month eq "SEP"){$month="9";}
elsif ($month eq "AUG"){$month="8";}
elsif ($month eq "JUL"){$month="7";}
elsif ($month eq "JUN"){$month="6";}
elsif ($month eq "MAY"){$month="5";}
elsif ($month eq "APR"){$month="4";}
elsif ($month eq "MAR"){$month="3";}
elsif ($month eq "FEB"){$month="2";}
elsif ($month eq "JAN"){$month="1";}
}
------------------
Emo1313
Dopplegangers Inc.
www.dopplegangers.com
|