PHP Twitteroauth reset_time_in_seconds转换为日期时间

I'm using the twitteroauth library found here: twitteroauth. One of the connection methods is to retrieve the rate limit. One of the returning values it contains is: [reset_time_in_seconds] => 1365270026. How do I convert this to a PHP datetime value?

Looks like a UNIX timestamp, so you can use DateTime::setTimestamp():

$date = new DateTime;
$date->setTimestamp( 1365270026);

Then, you can format it however you want:

echo $date->format( 'F jS Y, h:i:sA');