date function

Leonid Mamchenkov' Blog: PHP date() and 53 weeks

PHPDeveloper.org  Thu, 02/11/2010 - 12:12

In doing some work with data and date ranges, Leonid Mamchenkov came across something strange about the "weeks" that the date and time functions in PHP work on.

Sometimes, there's not always 52 weeks in a year.

With code as simple and straight-forward as [our example], you'd probably look for the problem elsewhere.

Maybe it's your statistical data which is wrong, or the graph is not generated properly. But the problem is here.


 

Brandon Savage's Blog: Be Wary of User Contributed Notes

PHPDeveloper.org  Mon, 11/23/2009 - 09:19

Brandon Savage has a reminder for both those familiar with PHP and a warning for those new to the language - take the examples in the comments of the PHP.net with a grain of salt.


 

Terry Chay's Blog: How much does a date() cost?

PHPDeveloper.org  Thu, 05/07/2009 - 10:18

In a new post to his blog Terry Chay looks at the real cost of a (call to) date() - the PHP function that can parse either the current or an inputted timestamp out into the date format you specify.