Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

sub unix_to_date / date_to_unix

Quote Reply
sub unix_to_date / date_to_unix
In the links.cfg file, under the sub date_to_unix function, it says:

Quote:
exists $months{$mon} or return undef;
$day = int($day); $year = $year - 1900;

and in the sub unix_to_date, it says:

Quote:
my $time = shift;
my ($sec, $min, $hour, $day, $mon, $year, $dweek, $dyear, $tz) = localtime $time;
my @months = qw!Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec!;
$year = $year + 1900;
return "$day-$months[$mon]-$year";

Do I need to chane the 1900 to 2000 ???

------------------

--Sanguinarius
The Real Vampire Directory
www.sanguinarius.org/cgi-bin/links/pages/
Quote Reply
Re: sub unix_to_date / date_to_unix In reply to
NO...LINKS and all Gossamer Threads scripts are Y2K Compliant!

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------