SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 18/01/2012, 01:33 PM   #1
CyNiC
High-roller
 
Join Date: Jan 2009
Location: Brazil
Posts: 1,410
Reputation: 203
Question Unix timestamp for date format

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
__________________
My scripts
Brazucas'Server
CyNiC is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unix Timestamp? NRJ53 Scripting Help 2 27/11/2011 04:45 PM
Getting UNIX timestamp with HTTP function. WooTFTW Scripting Help 2 18/11/2011 11:59 AM
Unix Timestamp Decode/Encode? Cody09 Help Archive 6 18/05/2011 02:55 PM
Timestamp bug Zack9764 Bug Reports 0 31/12/2010 01:29 PM


All times are GMT. The time now is 02:53 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.