graham23s Posted August 27, 2007 Share Posted August 27, 2007 Hi Guys, in an .xml i have this is the date for it: 1188206122 can nayone work it out im stumped lol Graham Link to comment https://forums.phpfreaks.com/topic/66857-solved-working-out-a-date-string/ Share on other sites More sharing options...
matthewhaworth Posted August 27, 2007 Share Posted August 27, 2007 It's a unix epoch timestamp.. make it a variable, apply it to the function date() and it'll all make sense. <?php $time = 1188206122; $date = date("G\h-i\m-s\s d\d\a\y\s-m\m\o\\n\\t\h\s-y\y\e\a\\r\s",$time); echo $date; ?> Edit: realised I didn't put the time in lol. haha, i'm terrible with date functions Link to comment https://forums.phpfreaks.com/topic/66857-solved-working-out-a-date-string/#findComment-335135 Share on other sites More sharing options...
graham23s Posted August 27, 2007 Author Share Posted August 27, 2007 lol thanks a ton mate thought i was gonna have to break out the enigma machine there lol Graham Link to comment https://forums.phpfreaks.com/topic/66857-solved-working-out-a-date-string/#findComment-335146 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.