saving register date
#10

No, it should be an integer if using Unix timestamps. A timestamp saves the number of seconds passed since 1/1/1970. Something like 1.4 billion currently. That value can be converted back into a date and time. Most easily done with the FROM_UNIXTIME MySQL function, but there are Pawn implementations as well (although slower).

PHP код:
SELECT FROM_UNIXTIME(1412285145'%M %D %Y, at %H:%i'
Код:
October 2nd 2014, at 23:25
Reply


Messages In This Thread
saving register date - by Ghazal - 02.10.2014, 20:14
Re: saving register date - by Pottus - 02.10.2014, 20:17
Re: saving register date - by mant - 02.10.2014, 20:22
Re: saving register date - by Ghazal - 02.10.2014, 20:39
Re: saving register date - by Ghazal - 02.10.2014, 20:51
Re: saving register date - by Pottus - 02.10.2014, 20:53
Re: saving register date - by Ghazal - 02.10.2014, 21:07
Re: saving register date - by Shady - 02.10.2014, 21:11
Re: saving register date - by Ghazal - 02.10.2014, 21:27
Re: saving register date - by Vince - 02.10.2014, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)