n4mation has asked for the wisdom of the Perl Monks concerning the following question:
Could some kind soul help me please?($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, isdst) = localti +me(time); @days = qw(Sunday Monday Tuesday Wednesday Thursday Friday Saturday); @months = qw(01 02 03 04 05 06 07 08 09 10 11 12); $sec = sprintf ("%02d", $sec); $central_time_min = $min; $central_time_min = sprintf ("%02d", $central_time_min); $mday = sprintf ("%02d", $mday); $year = "02"; $zone = "Central Time"; $central_time_hour = $hour + 1; $ampm = "AM"; if ($central_time_hour > 11) { $ampm = "PM"; } if ($central_time_hour > 12) { $central_time_hour = $central_time_hour - 12; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Morning or Night?
by demerphq (Chancellor) on Jan 12, 2002 at 14:22 UTC | |
|
Re: Morning or Night?
by blakem (Monsignor) on Jan 12, 2002 at 13:39 UTC | |
by Kanji (Parson) on Jan 12, 2002 at 14:26 UTC | |
|
Re: Morning or Night?
by n3dst4 (Scribe) on Jan 12, 2002 at 13:58 UTC | |
|
Re: Morning or Night?
by gt8073a (Hermit) on Jan 12, 2002 at 14:03 UTC | |
by gt8073a (Hermit) on Jan 12, 2002 at 14:18 UTC | |
|
Re: Morning or Night?
by metadoktor (Hermit) on Jan 12, 2002 at 16:05 UTC | |
by blakem (Monsignor) on Jan 12, 2002 at 16:29 UTC | |
|
Re: Morning or Night?
by n4mation (Acolyte) on Jan 12, 2002 at 19:33 UTC |