Jump to content

Milliseconds to time and Date


BDwinsAlt

Recommended Posts

That's not milliseconds, that number is the number of seconds that have elapsed since the base time of 1/1/1970. To see what it is in readable notation, use the date() function:
[code]<?php
$str = 1159916451;
echo date('l,F j, Y  g:i a',$str);
?>[/code]

Ken

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.