• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP gettime(); why am i dumb

BadRobot

Senior member
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....
 
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?
 
ah I mean getdate and I used getdate in my page, I just accidentally typed gettime instead of getdate when I was posting.
 
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 )
 
..... 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 [
 
Back
Top