Page 1 of 1

What date format is this: 1048883248?

Posted: Wed Apr 02, 2003 8:29 pm
by 3dron
1048883248 = Fri Mar 28, 2003 8:27 pm

Is this a standard format?

If I divide, it seems to be the number of minutes since:
Thu Jan 01, 1970 12:00 am

Ron

Posted: Wed Apr 02, 2003 8:55 pm
by zebrax
It is called unix time. It is the numbers of seconds since epoch, or Thu Jan 01, 1970 12:00 am

It make time calculations very easy as you can add and subract with out having to convert

Posted: Wed Apr 02, 2003 9:46 pm
by phice
Using the normal date() function, you can translate that time into any formation you've ever wanted.

example:

Code: Select all

<?php
$time = time();
echo date(DESIRED_FORMAT, $time);
?>