#1
  1. No Profile Picture
    PrintMagic
    Guest
    Devshed Newbie (0 - 499 posts)
    I'm running a BBS script on an NT server, and I need to attach the date on the Posted messages. Default path for DATE on Unix systems is /bin/date , can anyone help me on figuring out on how to call this on an NT server ?

    Thanks.
  2. #2
  3. No Profile Picture
    Imo
    Guest
    Devshed Newbie (0 - 499 posts)
    I dunno but doesn't:

    $date = localtime;
    print $date,"n";

    Do the job for you? Is that what you wanted?
  4. #3
  5. No Profile Picture
    Emo1313
    Guest
    Devshed Newbie (0 - 499 posts)
    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

IMN logo majestic logo threadwatch logo seochat tools logo