function onUse(cid, item, frompos, item2, topos)
twentyfour = false -- Based on hosters clock
tibiantime = true -- Based on realtibia time
if tibiantime == false then
if twentyfour == true then
time = os.date('%H:%M')
else
time = os.date('%I:%M %p')
end
else
time = tibiatime()
end
doPlayerSendTextMessage(cid, 22, "The time is "..time..".")
return 1
end