Though it still looks rather convoluted to me....$ampm = "AM"; if ($central_time_hour%24 > 11) { $ampm = "PM"; }
Perhaps something like:
Might make this one stanza a bit better.$ampm = ($central_time_hour%24 > 11) ? "PM" : "AM";
Update: demerphq caught me moving the bug from midnight to noon... changed constants back to 11 to fix it.
-Blake
In reply to Re: Morning or Night?
by blakem
in thread Morning or Night?
by n4mation
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |