in reply to Morning or Night?
... between 12:00 AM and 1:00 AM it displays PM.
and
$central_time_hour = $hour + 1
You have logic problems, others above have explained how to fix it, but here is why it is wrong( or so I think ).
The "$hour + 1" looks like you are running the script in a time zone 1 hour behind your time.
so, at 12:01AM your time, it is 11:01PM script time( heh ).
11:01PM script time means $hour is 23, and $central_time_hour is 24, which is greater then 11.
Will perl for money
JJ Knitis
(901) 756-7693
gt8073a@industrialmusic.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Morning or Night?
by gt8073a (Hermit) on Jan 12, 2002 at 14:18 UTC |