You would use those codes to format your string, but you would need to use a different function than I'm using in sStats_clock. Instead of GameTime_GetTime(), you'd use date().
Note: for sStats, you need a prefix and a suffix (though, one of them could just be an empty string of ""). Decide if you want your formatted text to be colored like the prefix or colored like the suffix. Or, if you want it split in two. Here are a few examples, assuming you had prefix colored
white and suffix colored
light blue.
Default sStats_clock code:
Code:
local time, suffix = strsplit(" ", GameTime_GetTime(true))
Code:
sStats:SetModuleText(sStats_clockText, time, " "..suffix)
Changing those lines to the below, net the following results:
Code:
local time = date("%a %b %dth, %I:%M %p")
Code:
sStats:SetModuleText(sStats_clockText, time, "")
Displays: Sun May 30th, 08:07 PM
Code:
local time = date("%a %b %dth, %I:%M %p")
Code:
sStats:SetModuleText(sStats_clockText, "", time)
Displays: Sun May 30th, 08:07 PM
Code:
local day, time = date("%a %b %dth"), date("%I:%M %p")
Code:
sStats:SetModuleText(sStats_clockText, day.." ", time)
Displays: Sun May 30th 08:07 PM
/edit: the GameTime_GetTime() function allows sStats to accommodate whether the local time or server time are enabled in the clock options. I don't quite remember which date() will net you.