in reply to Date format question
Here's my 2 cents:
small tip, use the system for dates, don't try to add and whatnot, what happens when it's the twelfth month?...you get 13.
use POSIX qw(strftime); print strftime("%Y.%m.%d", localtime()), "\n";
small tip, use the system for dates, don't try to add and whatnot, what happens when it's the twelfth month?...you get 13.
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Re: Date format question
by Adam (Vicar) on Sep 12, 2000 at 04:27 UTC | |
RE: Re: Date format question
by le (Friar) on Sep 12, 2000 at 11:32 UTC |
In Section
Seekers of Perl Wisdom