|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
I dunno but doesn't:
$date = localtime; print $date,"n"; Do the job for you? Is that what you wanted? |
|
#3
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Calling DATE on NT |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|