in reply to Re: Time in Perl (examples in PerlMonks Q&A dates-and-times section, plus (s)printf)
in thread Time in Perl
Do a man strftime to find out what all the formats are.use POSIX; print strftime("%Y-%m-%d %H:%M:%S", localtime),"\n"; # This displays the following: # 2002-04-28 10:52:32 # (Assuming I ran this when I was typing. {g})
|
|---|