|
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]
|