Gossamer Forum
Home : Products : Others : Gossamer Community :

Datestamp storage in Community

Quote Reply
Datestamp storage in Community
Alex,

We discussed already earlier about database usage of unixtime or DATETIME.

Now, I looked into the Community comm_users and comm_sessions tables and found, that you use unix timestamp instead of DATEIME. As for comm_sessions table I would aggree to use unixtime.
But for comm_users table I don't not aggree. IMHO DATETIME would be better in that table.

In comm_users table, the comm_created and comm_lastlogin columns are unixtime based.
It means, that those possibilities to filter just by using an sql query LIKE '2003-12-10%' is impossible furthermore.
This possibility in Links SQL helps many times in filtering by a date. Now this is gone.
Additionally the possibility to use a database manager and check some info also gone, if you want to check any date right in the Community database...

I think, unixtime has not so much advantages of over DATETIME, to decide to use solely unixtime.
What are your reasons to use solely unixtime intead MySQL's internal DATETIME type?

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread Datestamp storage in Community webmaster33 6124 Jan 28, 2003, 7:04 PM
Thread Re: [webmaster33] Datestamp storage in Community
Alex 5959 Jan 29, 2003, 9:28 AM
Thread Re: [Alex] Datestamp storage in Community
webmaster33 5936 Jan 29, 2003, 1:23 PM
Thread Re: [webmaster33] Datestamp storage in Community
Paul 5937 Jan 29, 2003, 2:08 PM
Thread Re: [Paul] Datestamp storage in Community
webmaster33 5942 Jan 29, 2003, 2:43 PM
Thread Re: [webmaster33] Datestamp storage in Community
Paul 5932 Jan 29, 2003, 2:50 PM
Thread Re: [Paul] Datestamp storage in Community
webmaster33 5909 Jan 29, 2003, 3:02 PM
Post Re: [webmaster33] Datestamp storage in Community
Paul 5909 Jan 29, 2003, 3:44 PM
Thread Re: [webmaster33] Datestamp storage in Community
Alex 5895 Jan 29, 2003, 6:20 PM
Post Re: [Alex] Datestamp storage in Community
webmaster33 5891 Jan 29, 2003, 6:37 PM
Post Re: [webmaster33] Datestamp storage in Community
Jagerman 5889 Jan 29, 2003, 6:47 PM