phpSensei Posted September 7, 2007 Share Posted September 7, 2007 How can i convert this "1189172519" into a time format. I got it from a phpbb olympus table, for the day the user joined the forum... Link to comment https://forums.phpfreaks.com/topic/68427-solved-convert-this/ Share on other sites More sharing options...
Psycho Posted September 7, 2007 Share Posted September 7, 2007 It is a time format. It is a timestamp which represents the number of seconds since Jan 1st, 1970. You can use the date() function to change it into a "readable" format. http://us2.php.net/manual/en/function.time.php http://us2.php.net/manual/en/function.date.php EDIT: That timestamp represent Friday, September 07, 2007 8:41:59 AM. Link to comment https://forums.phpfreaks.com/topic/68427-solved-convert-this/#findComment-344049 Share on other sites More sharing options...
phpSensei Posted September 7, 2007 Author Share Posted September 7, 2007 right and right... thankyou!!! Link to comment https://forums.phpfreaks.com/topic/68427-solved-convert-this/#findComment-344056 Share on other sites More sharing options...
phpSensei Posted September 7, 2007 Author Share Posted September 7, 2007 k, can you please show me how? Link to comment https://forums.phpfreaks.com/topic/68427-solved-convert-this/#findComment-344057 Share on other sites More sharing options...
tippy_102 Posted September 7, 2007 Share Posted September 7, 2007 <?php $unix_time=1189172519; $readable_date=date("d/m/y", $unix_time); echo $readable_date; ?> Link to comment https://forums.phpfreaks.com/topic/68427-solved-convert-this/#findComment-344059 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.