<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using eBay&#8217;s API to search auctions and return results</title>
	<atom:link href="http://www.money-code.com/2007/09/using-ebays-api-to-search-auctions-and-return-results/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.money-code.com/2007/09/using-ebays-api-to-search-auctions-and-return-results/</link>
	<description>Coding For Online Success</description>
	<lastBuildDate>Sat, 13 Feb 2010 19:26:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rob Taylor</title>
		<link>http://www.money-code.com/2007/09/using-ebays-api-to-search-auctions-and-return-results/comment-page-1/#comment-23</link>
		<dc:creator>Rob Taylor</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-23</guid>
		<description>Love the code - having a fiddle now. One question is that ebaydate() is not defined anywhere - do you have a snippet to auto convert what they send back?

cheers.
Rob.</description>
		<content:encoded><![CDATA[<p>Love the code &#8211; having a fiddle now. One question is that ebaydate() is not defined anywhere &#8211; do you have a snippet to auto convert what they send back?</p>
<p>cheers.<br />
Rob.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.money-code.com/2007/09/using-ebays-api-to-search-auctions-and-return-results/comment-page-1/#comment-24</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-24</guid>
		<description>&lt;p&gt;I&#039;m not liking this function.. and will probably re-write it now.. but this is what I have in place.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;?php
function getShortDate($stringDate){
	if($stringDate == &quot;&quot;)
		return &quot;&quot;;
	else{
		$splitDate = explode(&quot; &quot; , $stringDate);
		$dateArray = explode(&quot;-&quot;, $splitDate[0]);
		$dateYear = $dateArray[0];
		$dateMonth = $dateArray[1];
		$dateDay = $dateArray[2];
		$formattedDate = $dateMonth . &quot;/&quot; . $dateDay . &quot;/&quot; . $dateYear;
		unset($splitDate);
		unset($dateArray);
		return $formattedDate;
	}
}

function ebayDate($inStringDate){
	$dateArr		= explode(&quot;T&quot;,$inStringDate);
	$date			= getShortDate($dateArr[0]);
	$dateSplit		= explode(&quot;-&quot;,$dateArr[0]);
	$month			= $dateSplit[1];
	$year			= $dateSplit[0];
	$day			= $dateSplit[2];
	$timeArr		= explode(&quot;:&quot;,rtrim(rtrim($dateArr[1],&quot;000Z&quot;),&#039;.&#039;));
	$hour			= $timeArr[0];
	$minute			= $timeArr[1];
	$second			= $timeArr[2];
	unset($dateArr);
	unset($dateSplit);
	unset($timeArr);
	return date(&quot;m/d/y H:i:s&quot;, gmmktime($hour -1 , $minute, $second, $month, $day, $year)).&quot; PDT&quot;;
}
?&gt;
&lt;/code&gt;&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m not liking this function.. and will probably re-write it now.. but this is what I have in place.</p>
<p><code><br />
< ?php<br />
function getShortDate($stringDate){<br />
	if($stringDate == "")<br />
		return "";<br />
	else{<br />
		$splitDate = explode(" " , $stringDate);<br />
		$dateArray = explode("-", $splitDate[0]);<br />
		$dateYear = $dateArray[0];<br />
		$dateMonth = $dateArray[1];<br />
		$dateDay = $dateArray[2];<br />
		$formattedDate = $dateMonth . "/" . $dateDay . "/" . $dateYear;<br />
		unset($splitDate);<br />
		unset($dateArray);<br />
		return $formattedDate;<br />
	}<br />
}</p>
<p>function ebayDate($inStringDate){<br />
	$dateArr		= explode("T",$inStringDate);<br />
	$date			= getShortDate($dateArr[0]);<br />
	$dateSplit		= explode("-",$dateArr[0]);<br />
	$month			= $dateSplit[1];<br />
	$year			= $dateSplit[0];<br />
	$day			= $dateSplit[2];<br />
	$timeArr		= explode(":",rtrim(rtrim($dateArr[1],"000Z"),'.'));<br />
	$hour			= $timeArr[0];<br />
	$minute			= $timeArr[1];<br />
	$second			= $timeArr[2];<br />
	unset($dateArr);<br />
	unset($dateSplit);<br />
	unset($timeArr);<br />
	return date("m/d/y H:i:s", gmmktime($hour -1 , $minute, $second, $month, $day, $year))." PDT";<br />
}<br />
?><br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->