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"; ?> Link to comment https://forums.phpfreaks.com/topic/48673-solved-timestamp-conversion-problem/ 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; Link to comment https://forums.phpfreaks.com/topic/48673-solved-timestamp-conversion-problem/#findComment-238409 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 Link to comment https://forums.phpfreaks.com/topic/48673-solved-timestamp-conversion-problem/#findComment-238447 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.