matthewst Posted April 25, 2007 Share Posted April 25, 2007 No matter what timestamp I put in $time it always returns a time of hour:01 or hour:02 or hour:03 (hour is correct). I know not everything in my database happens in the first 3 minutes of every hour. <?php $time = 1170076298; $showtime = date('m/d/y-h:m:s',$time); echo "$showtime"; ?> Quote Link to comment Share on other sites More sharing options...
taith Posted April 25, 2007 Share Posted April 25, 2007 you sure about that? $time = time(); $showtime = date("m/d/y-h:m:s",$time); echo $showtime; Quote Link to comment Share on other sites More sharing options...
matthewst Posted April 25, 2007 Author Share Posted April 25, 2007 changed m to i in time comversion Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.