Jump to content

[SOLVED] Working out a date string


graham23s

Recommended Posts

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.