bory has asked for the wisdom of the Perl Monks concerning the following question:
Thank you for your time.sub local_yyyymmdd { my $time = shift || time(); my ($year, $month, $mday) = (localtime($time))[5,4,3]; return 10_000*($year + 1900) + 100*($month + 1) + $mday; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: displaying the current date
by Corion (Patriarch) on Dec 08, 2003 at 08:13 UTC | |
by duff (Parson) on Dec 08, 2003 at 15:20 UTC | |
|
Re: displaying the current date
by ysth (Canon) on Dec 08, 2003 at 08:07 UTC | |
|
Re: displaying the current date
by atcroft (Abbot) on Dec 08, 2003 at 08:12 UTC | |
|
Re: displaying the current date
by Roger (Parson) on Dec 08, 2003 at 08:11 UTC | |
|
Re: displaying the current date
by Steve_p (Priest) on Dec 08, 2003 at 15:07 UTC | |
|
Re: displaying the current date
by jweed (Chaplain) on Dec 08, 2003 at 08:17 UTC |