Unix timestamp for date format
#1

I know, I could have used a plugin to do this super-easily by using localtime, but would like to use a function in Pawn for aesthetic reasons, and are too much calculations that I don't understand how to do.
Don't ask why I just don't use gettime, the function is perfect but I have my reasons related to GMT.

http://pastebin.com/Uv1Abu66

The function're adding two hours, I wonder why.

It was converted from PHP to Pawn, source: http://pastebin.com/P3AvJwjb
Reply


Messages In This Thread
Unix timestamp for date format - by CyNiC - 18.01.2012, 12:33

Forum Jump:


Users browsing this thread: 1 Guest(s)