[wp-trac] Re: [WordPress Trac] #9313: Store the date format string "Y-m-d H:i:s" in a constant

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 16 19:59:31 GMT 2009


#9313: Store the date format string "Y-m-d H:i:s" in a constant
---------------------------+------------------------------------------------
 Reporter:  simonwheatley  |       Owner:  anonymous             
     Type:  enhancement    |      Status:  new                   
 Priority:  low            |   Milestone:  Unassigned            
Component:  General        |     Version:                        
 Severity:  normal         |    Keywords:  has-patch, 2nd-opinion
---------------------------+------------------------------------------------

Comment(by Denis-de-Bernardy):

 Funny... to me, Y-m-d H:i:s reads as MYSQL_DATETIME, much like
 /(?:\b[^.+]{1,2})*?\d+?\b/ reads as plain english. :D

 Seriously, though, while we're on the topic of using an app-wide constant
 rather than constant string that gets dumped in the functions, I'd be
 curious to know the memory and performance footprint of both options.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9313#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list