> } > if ($hour < 10) { > $hour = "0$hour"; Try: $hour = ($hour >12)?($hour - 12):$hour; HTH -Mark ======================================================================= Work Address: Mark T. Johns | Home Address: (email) mark.johns@dawson.com | mark.johns@usa.net (WWW) http://38.219.86.21/ | http://www.netcom.com/~johnsms/ ----------------------------------------------------------------------- Let me pass on to you the one thing I've learned about this place: No one here is exactly what he appears. Not Mollari, not Delenn, not Sinclair .. and not me. ----------------------------------------------------------------------- Standard Disclaimers Apply ======================================================================= ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch