View Single Post
03-09-10, 02:09 PM   #186
Breetard
A Murloc Raider
 
Breetard's Avatar
Join Date: Mar 2010
Posts: 7
Originally Posted by Katae View Post
Oh right ...
Well, you could change the minute variable that's near the end of format() to format("%02d", minute) and it'll pad any single digits with a zero.
Alrighty, now its working perfect! Thanks so much for your help, between you and my boyfriend I was able to figure it out . Here is the end result for anyone who wants to add in the time.

Code:
				-- Server Clock
				local hour, minute = GetGameTime()
				local aptime, ampm = true, "am"
				if aptime then
				   if hour == 0 then hour = 12 end
				   if hour > 12 then hour = hour - 12 end
				   if hour <= 12 then ampm = "pm" end
				else ampm = "" end
				
                return format(":: %s :: %s%%dur :: %sfps :: %smB :: %sms :: %s:%02d%s ::", gold, durability, fps, memory, latency, hour, minute, ampm)
            end, update = 1,
  Reply With Quote