protected function getDateFromMongoId(ObjectID $id)
	{
		$timestamp = intval(substr((string)$id, 0, 8), 16);
		$date_time = new \DateTime('@' . $timestamp);
		$date_time->setTimezone(new \DateTimeZone(date_default_timezone_get()));
		return $date_time;
	}
protected function getDateFromMongoId(ObjectID $id)
	{
		$timestamp = intval(substr((string)$id, 0, 8), 16);
		$date_time = new \DateTime('@' . $timestamp);
		$date_time->setTimezone(new \DateTimeZone(date_default_timezone_get()));
		return $date_time;
	}
protected function getDateFromMongoId ( ObjectID $ id ) { $ timestamp = intval ( substr ( ( string ) $ id , 0 , 8 ) , 16 ) ; $ date_time = new \ DateTime ( '@' . $ timestamp ) ; $ date_time -> setTimezone ( new \ DateTimeZone ( date_default_timezone_get ( ) ) ) ; return $ date_time ; }
Get created DateTime from a ObjectID object.

@param ObjectID $id
@return \DateTime
Get created DateTime from a ObjectID object .