<?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: Unix Timestamp in Flash</title>
	<atom:link href="http://www.swamicharan.com/blog/flash/unix-timestamp-in-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.swamicharan.com/blog/flash/unix-timestamp-in-flash/</link>
	<description>My personal blog...</description>
	<lastBuildDate>Tue, 23 Aug 2011 19:22:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Swami Charan</title>
		<link>http://www.swamicharan.com/blog/flash/unix-timestamp-in-flash/comment-page-1/#comment-414</link>
		<dc:creator>Swami Charan</dc:creator>
		<pubDate>Thu, 25 Feb 2010 12:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=731#comment-414</guid>
		<description>Thanks Eric for the suggestion. It works fine now...</description>
		<content:encoded><![CDATA[<p>Thanks Eric for the suggestion. It works fine now&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric M.</title>
		<link>http://www.swamicharan.com/blog/flash/unix-timestamp-in-flash/comment-page-1/#comment-413</link>
		<dc:creator>Eric M.</dc:creator>
		<pubDate>Thu, 25 Feb 2010 11:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=731#comment-413</guid>
		<description>The explanation about why the timestamp differs if you re-enter it is because Flash has a different approach to epoch&#039;s: not in seconds but in milliseconds. While you&#039;re dividing by 1000, you&#039;re not multiplying it back again..

Try this instead:
var dateNew = new Date();
dateNew.setTime(unixTime*1000);
trace(dateNew);</description>
		<content:encoded><![CDATA[<p>The explanation about why the timestamp differs if you re-enter it is because Flash has a different approach to epoch&#8217;s: not in seconds but in milliseconds. While you&#8217;re dividing by 1000, you&#8217;re not multiplying it back again..</p>
<p>Try this instead:<br />
var dateNew = new Date();<br />
dateNew.setTime(unixTime*1000);<br />
trace(dateNew);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

