ID:177398
 
I want to add time to my game but when i add time2text proc
it is in 24Hrs i want 12Hr time...
What you need to do in this case is get the hour separately, determine if it's AM or PM, and adjust accordingly. Something like this:
var/hour = text2num(time2text(world.realtime, "hh"))
var/ampm = "AM"
if (hour > 11)
hour -= 12
ampm = "PM"
if (hour == 0)
hour = 12
var/min = time2text(world.realtime, "mm")
world << "The local time is [hour]:[min] [ampm]"

See the reference entry for time2text if you want other time information such as seconds, day, month, year, etc.