[SOLVED] Date() bug??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
siefkencp
Forum Commoner
Posts: 69
Joined: Thu Dec 16, 2004 8:50 am

[SOLVED] Date() bug??

Post by siefkencp »

I have a problem when calling my date function regardless of if I use the time stamp or not.

Here is what I am doing:

Code: Select all

$date = date("h.m:s", time());

print "$date";
What happens:
The hour and seconds are correct. the minute keeps repeating on 02. What gives? Any ideas?

Chris
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

m = month. not minute.
i = minute.
siefkencp
Forum Commoner
Posts: 69
Joined: Thu Dec 16, 2004 8:50 am

Post by siefkencp »

AHHH HA!!!

That explains everything. Feyd, as ussual you are the greatest.
Post Reply