Saturday, July 21, 2012

Change created/modified to unix time

Hi,

I currently make use of the created and modified fields throughout my application but being datetime fields, performing searches/comparisons isn't as fast as they could be if unix timestamps were used.

I realise there may be the excuse that formatting would be required as unix timestamps are unreadable, but this is also the case with the current setup as how many people use YYYY-MM-DD HH:MM:SS when displaying dates? it's usually DD-MM-YYYY or MM-DD-YYYY.

What does everyone else think?

Is there a way to convert the current created/modified fields to UNIX timestamps with current CakePHP?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate