Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
On Sun, 1 Apr 2001, Mikhail Kovalenko wrote:
> How about this:
>
> perl -e
> '($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);
> print $mon+1," $mday ",$year+1900,"\n";'
Thanks, Mikhail! Yes, that worked well. I just don't understand how
quoting, commas and brackets work in perl print statements. Your code was
illuminating. After reading it, I altered the line of code as follows...
perl -e
'($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);
print $mon+1,"/$mday/",$year+1900,"\n";'
...so that I'd get 4/1/2001 instead of 4 1 2001.
Thanks much.
Mike
--
To manage your subscription, go to http://mlug.missouri.edu/members/edit.php
Archives are available at http://mlug.missouri.edu/list-archives/