in reply to Representing a single-digit number as two-digits

You could always do this kind of thing:

  if ($hour < 10) { $hour = "0$hour"; }
  if ($min < 10) { $min = "0$min"; }
  if ($sec < 10) { $sec = "0$sec"; }


etc...
  • Comment on Re: Representing a single-digit number as two-digits