talwyn has asked for the wisdom of the Perl Monks concerning the following question:
Just a bit shorter but still fairly obvious as to what I am doing. Any comments appreciated.my ($sec, $min, $hour, $monthday, $month, $year, $weekday, $yday, $is +dst) = localtime ( time()); my $changedate = sprintf "%4d-%02d-%02d %02d:%02d:%02d", ($year + 1900),($month +1),$monthday,$hour,$min,$sec;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Shorter Formating?
by Zaxo (Archbishop) on Aug 14, 2002 at 02:17 UTC | |
(jeffa) Re: Shorter Formating?
by jeffa (Bishop) on Aug 14, 2002 at 02:13 UTC | |
Re: Shorter Formating?
by BrowserUk (Patriarch) on Aug 14, 2002 at 02:07 UTC | |
Re: Shorter Formating?
by screamingeagle (Curate) on Aug 14, 2002 at 05:12 UTC | |
Re: Shorter Formating?
by Steve_p (Priest) on Aug 14, 2002 at 11:16 UTC |