cyrixware Posted February 26, 2008 Share Posted February 26, 2008 Let say i have this code. And the output time is: (1204009616) My question is how do i know what time is it base on this time (1204009616)? Do i need to convert this numbers? If so, how? <?php echo time();?> Link to comment https://forums.phpfreaks.com/topic/93059-changing-time-format/ Share on other sites More sharing options...
DarkerAngel Posted February 26, 2008 Share Posted February 26, 2008 date("h:i:s a", 1204009616); Link to comment https://forums.phpfreaks.com/topic/93059-changing-time-format/#findComment-476776 Share on other sites More sharing options...
cyrixware Posted February 26, 2008 Author Share Posted February 26, 2008 date("h:i:s a", 1204009616); I tried this one many times. But still the same problem.. it will not show the exact time like ex 2:34:23 Link to comment https://forums.phpfreaks.com/topic/93059-changing-time-format/#findComment-476777 Share on other sites More sharing options...
DarkerAngel Posted February 26, 2008 Share Posted February 26, 2008 date("h:i:s a", 1204009616); I tried this one many times. But still the same problem.. it will not show the exact time like ex 2:34:23 This was the exact output that gave me 02:06:56 am (to remove the 'am' date("h:i:s ", 1204009616) Link to comment https://forums.phpfreaks.com/topic/93059-changing-time-format/#findComment-476779 Share on other sites More sharing options...
cyrixware Posted February 26, 2008 Author Share Posted February 26, 2008 date("h:i:s a", 1204009616); I tried this one many times. But still the same problem.. it will not show the exact time like ex 2:34:23 This was the exact output that gave me 02:06:56 am (to remove the 'am' date("h:i:s ", 1204009616) hehehe sorry DarkerAngel. Your codes is correct! My time and date format in my pc is not set. hehehe lol thanks Link to comment https://forums.phpfreaks.com/topic/93059-changing-time-format/#findComment-476780 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.