You are here: Re: How to format at date field output « PHP Programming Language « IT news, forums, messages
Re: How to format at date field output

Posted by Mladen Gogala on 07/25/06 18:19

Andy Jeffries wrote:

>
> Personally I prefer Kim André Akerø's solution, it's easier to read and
> programmer time is (in *most* of the work I do) worth more than CPU time.
> However, Kim's method is by far the slowest. To do 10,000 iterations of
> each version:

Formatting within the PHP script might be easier to read, but databases
usually have extensive built-in calendaring capabilities. At least, that
is the case with Oracle (my favorite), SQL Server and PostgreSQL. All
the date rules are already built in, database "knows" what day will it
be on 7/4/2076, will it be a leap year and what day will Halloween fall
on this year. I find it wasteful to re-implement all those goodies in
PHP, just for purity.
--
Mladen Gogala
http://www.mgogala.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация