gli Posted July 8, 2008 Share Posted July 8, 2008 Hi! I use this to convert unix timestamp to normal time: <?php $normaltime = date("F j, Y, g:i a", $lastpost); ?> but it shows me clock in PM&AM format, but i want to make it in 24 hour format. I can't find how. Thanks Link to comment https://forums.phpfreaks.com/topic/113715-solved-from-unix-to-24-style-time/ Share on other sites More sharing options...
mbeals Posted July 8, 2008 Share Posted July 8, 2008 http://us2.php.net/date lists all the format codes "G:i" or "H:i" instead of "g:i a" will give you 24 hour time Link to comment https://forums.phpfreaks.com/topic/113715-solved-from-unix-to-24-style-time/#findComment-584357 Share on other sites More sharing options...
gli Posted July 8, 2008 Author Share Posted July 8, 2008 lot of thanks. next time i'll search more carefully i was in that page already and didnt see. Link to comment https://forums.phpfreaks.com/topic/113715-solved-from-unix-to-24-style-time/#findComment-584359 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.