MLUG: Re: [MLUG] formatting dates in perl
Re: [MLUG] formatting dates in perl
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, Jonathan King wrote:

> Oh yeah: the most succinct way to print out mm/dd/yy for the current time
> that I know of is:
>
>    perl -lMPOSIX -e 'print strftime("%D",localtime);'
>    04/01/01


I just have one thing to say:  Jon King is a perl God!

Mike


P.S.  I had read the strftime man page but I had no clue on how to use
      strftime in perl.  So that was very cool.

--
To manage your subscription, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/