nlafferty has asked for the wisdom of the Perl Monks concerning the following question:
####################### GET TIME AND DATE FOR IN FORM my ($time, $date); sub in_time_date ($$$$$$$){ my ($min, $hour, $day, $month, $year, $calc_year, $calc_month) = @_; ($min, $hour, $day, $month, $year) = (localtime)[1,2,3,4,5]; ($calc_year, $calc_month); $calc_year = $year+1900; $calc_month = $month+1; $date = "$calc_year-$calc_month-$day"; $time = sprintf("%d:%02d", $hour,$min); } ####################### END GET TIME AND DATE FOR IN FORM in_time_date($min, $hour, $day, $month, $year, $calc_year, $calc_month +);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Prototype problem
by kwoff (Friar) on Jan 01, 2002 at 00:52 UTC | |
|
Re: Prototype problem
by steves (Curate) on Jan 01, 2002 at 00:56 UTC | |
by nlafferty (Scribe) on Jan 01, 2002 at 00:59 UTC | |
by steves (Curate) on Jan 01, 2002 at 08:04 UTC | |
|
Re (tilly) 1: Prototype problem
by tilly (Archbishop) on Jan 06, 2002 at 06:13 UTC |