Posts: 400
Threads: 52
Joined: Apr 2012
Reputation:
0
Im really confused about this, is there anyway to store a Date that returns to a Timestamp? just like gettime in pawno instead using NOW()?
correct me if im wrong im not a pro.
Posts: 79
Threads: 2
Joined: Dec 2010
PHP код:
select unix_timestamp(`dateColumnName`) as `timestamp` from tableName;
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
A Unix timestamp can be stored in a normal int column. The function that returns the timestamp is called UNIX_TIMSTAMP().