How can I convert a unix timestamp into something readable?

The unix timestamp is a number representing the number of seconds since 1970.
Most applications use this value to keep track of what time it is.
If you have a unix timestamp and need to see what time it represents, you can create a basic php script to decode it for you.
Create a time.php in your public_html foler, and enter the following data:

<html>
<body onLoad="document.form.time.focus();">
<?

if (isset($_GET['time']))
{
echo date("r", $_GET['time']);
echo "<br><br>";
}

?>

<form action=time.php method=GET name=form>
Timestamp: <input type=text name=time> <input type=submit>
</form>

</body>
</html>

Then view it through the web, enter the number and submit the form.


Was this article helpful?

mood_bad Dislike 1
mood Like 0
visibility Views: 19053