PHP gettime(); why am i dumb

BadRobot

Senior member
May 25, 2007
547
0
0
I know im doing somethign wrong and its simple.....

$my_time=gettime(seconds);
i know this isnt right but how do i do it??? i feel retarded....
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,603
4,521
75
When having trouble with a PHP function, look it up in the online manual.

Result: "Sorry, but the function gettime is not in the online manual. Perhaps you misspelled it, or it is a relatively new function that hasn't made it into the online documentation yet.", with some suggestions. The best appear to be:
- gettimeofday
- time
- getdate
- gmstrftime

What were you expecting the function gettime() to do?
 

BadRobot

Senior member
May 25, 2007
547
0
0
ah I mean getdate and I used getdate in my page, I just accidentally typed gettime instead of getdate when I was posting.
 

KLin

Lifer
Feb 29, 2000
30,193
553
126
http://us2.php.net/getdate

Looks like it just returns an array of date values.


The output I got is below when running the example:

Array ( [seconds] => 15 [minutes] => 16 [hours] => 10 [mday] => 10 [wday] => 3 [mon] => 12 [year] => 2008 [yday] => 344 [weekday] => Wednesday [month] => December [0] => 1228932975 )
 

BadRobot

Senior member
May 25, 2007
547
0
0
..... move on nothing to see here...

thanks for the help Klin, when i read your posts i realize what i did.

im retarded, i was using ( not [