Mysql Date
#2

This is most likely the best solution: [Tutorial] How to: Unix timestamps

Unix timestamps (the kind used by sa-mp) are in seconds, easy to save/load, and you could just add 604800 seconds (7 days) to have a timestamp for a week in the future. If you dont feel like reading the tut.

Once you are using timestamps, you can turn the database column into a timestamp type if you plan on doing fancy stuff with the data outside of sa-mp, or just int will work too, and in sa-mp read it as integer.
Reply


Messages In This Thread
Mysql Date - by AroseKhanNiazi - 01.07.2015, 15:38
Re: Mysql Date - by Suicidal.Banana - 01.07.2015, 16:27

Forum Jump:


Users browsing this thread: 3 Guest(s)