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();?> Quote Link to comment Share on other sites More sharing options...
DarkerAngel Posted February 26, 2008 Share Posted February 26, 2008 date("h:i:s a", 1204009616); Quote Link to comment 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 Quote Link to comment 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) Quote Link to comment 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 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.