Hey spbogie, love your timestamps for the logs, but do you think you could generalize the function?
Instead of being limited to returning the timestamp for the current time, make it so it can do the timestamp for any number.
Also, instead of using this:
local s = math.floor(_CurTime())
s=tostring(s)
m=tostring(m)
h=tostring(h)
if string.len(s)==1 then s = "0"..s end
if string.len(m)==1 then m = "0"..m end
if string.len(h)==1 then h = "0"..h end
You can accomplish the same thing more efficiently with this:
s = string.format( "%02i", s )
m = string.format( "%02i", m )
h = string.format( "%02i", h )
Lastly, please move the function from util.lua to misc.lua. (util.lua is for GMod9-only functions, misc.lua is for functions that could run apart from GMod9).
I'd do all this myself, but you know the system better and I thought you might want to handle it.
Thank you!