Tommy D’s Sexy Blog

TagLine Here

PHP Tip, using date()

Filed under: PHP Tips — Tommy D. at 12:14 pm on Friday, July 1, 2005

When using the date() function, keep in mind that you should use date(“i”) to obtain the minute. A great deal of code incorrectly uses date(“m”) for this, e.g.

$timenow = date(“H:m:s”); //incorrect

Passing “m” to the date() function will return the current month as a number from 1 to 12, not the current minute.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

 

Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin