[WEB4LIB] $date_command path in NT

David Merchant merchant at LATECH.EDU
Tue Nov 28 17:06:42 EST 2000


>Yep, that's the problem.  Lazy programming (that being said, I usually do
>the same thing).

Me too, I keep saying, "when I have the luxury of extra time I'll go back 
and do it better" but that doesn't happen often. Heck, I barely have time 
anymore to hack a script let alone code one from the ground up.  And now I 
got to learn how to do it on NT...

>   Later on in the script there's probably a line like one of
>the following:
>
>      $date = `$date_command`;

Yep, that's the line (with some formatting of the time after it).

>or something similar.  You'll need to doctor that up since NT machines don't
>have the same kind of date command as Unix machines.  Instead, use something
>like:
>
>      $date = localtime();

Thanks greatly!

>or
>      print localtime();
>
>That will give you a date like: "Tue Nov 28 15:44:47 2000".  Formatting it a

Right now, that'll be good enough!  "When I have the luxury of extra 
time"  I'll format it a bit, but it's not critical <G>.

An aside, anyone know of a good book that will help a Unix Perl hacker to 
become a NT Perl hacker?

TTFN,
David
Head, Systems Dept, Louisiana Tech University
merchant at latech.edu
LA Library Webmasters List administrator 
(www.LaTech.edu/mailman/listinfo/lalibweb-l)
JavaScript List Administrator (www.mountaindragon.com/javascript/)
Webmaster, HTML Encyclopedia (www.mountaindragon.com/html/)



More information about the Web4lib mailing list