View previous topic :: View next topic |
Author |
Message |
hc2995 -
Joined: 07 Aug 2006 Posts: 644 Location: Maryland, USA
|
Posted: Sat Jan 27, 2007 8:33 am Post subject: Time not displaying correctly? |
|
|
I am making an error page for the server to send me an e-mail when and if a script breaks, here is the problem:
I have the varriable $time here is what it looks like
Code: |
$time = time("g:i A");
|
Only, when i get the e-mail i get a load of numbers...... (i believe these are called unix time numbers, but im not sure........)
So what am i doing wrong? _________________ Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P |
|
Back to top |
|
 |
pkSML -
Joined: 29 May 2006 Posts: 955 Location: Michigan, USA
|
Posted: Sat Jan 27, 2007 2:10 pm Post subject: |
|
|
From the PHP manual:
Quote: | time -- Return current Unix timestamp |
BTW, it has no arguments, so it can only be used as
You want to use date instead.
Code: | $time = date("G:i A"); |
_________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|
Back to top |
|
 |
hc2995 -
Joined: 07 Aug 2006 Posts: 644 Location: Maryland, USA
|
Posted: Sat Jan 27, 2007 9:33 pm Post subject: |
|
|
LOL, sorry, iv never used time before in a script, thanks _________________ Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P |
|
Back to top |
|
 |
|