<?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: Converting Excel date/time to Unix timestamp</title>
	<atom:link href="http://blog.webconsultingengineering.com/phptalk/timestamp-excel2unix.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.webconsultingengineering.com/phptalk/timestamp-excel2unix.html</link>
	<description>In search of reasons for web addiction</description>
	<lastBuildDate>Fri, 03 Sep 2010 09:21:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Susenjit</title>
		<link>http://blog.webconsultingengineering.com/phptalk/timestamp-excel2unix.html/comment-page-1#comment-398</link>
		<dc:creator>Susenjit</dc:creator>
		<pubDate>Fri, 03 Sep 2010 09:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webconsultingengineering.com/?p=12#comment-398</guid>
		<description>Thanks for checking. However I used this formula to convert Excel date to Unix timestamp. I had written a program which picks up a cell(containing a date) value and then convert it in Unix timestamp. I found the result was correct. 

After getting your post I just made another test. You can check it yourself. Put 1/1/1970 and 1/1/1900 in 2 cells now change the format of these cells as number. What you will get is that first cell value as 25569 and second cell value as 1. But while calculating the day difference you should consider 1/1/1900 as day 0. 

However using $DayDifference as 25568 I converted a Excel date to Unix timestamp and print that using strftime(). I got one day more rather than the expected result.</description>
		<content:encoded><![CDATA[<p>Thanks for checking. However I used this formula to convert Excel date to Unix timestamp. I had written a program which picks up a cell(containing a date) value and then convert it in Unix timestamp. I found the result was correct. </p>
<p>After getting your post I just made another test. You can check it yourself. Put 1/1/1970 and 1/1/1900 in 2 cells now change the format of these cells as number. What you will get is that first cell value as 25569 and second cell value as 1. But while calculating the day difference you should consider 1/1/1900 as day 0. </p>
<p>However using $DayDifference as 25568 I converted a Excel date to Unix timestamp and print that using strftime(). I got one day more rather than the expected result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Smitty</title>
		<link>http://blog.webconsultingengineering.com/phptalk/timestamp-excel2unix.html/comment-page-1#comment-397</link>
		<dc:creator>Smitty</dc:creator>
		<pubDate>Thu, 02 Sep 2010 11:49:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webconsultingengineering.com/?p=12#comment-397</guid>
		<description>Thank you for this article! It has greatly simplified a data import for me today.

I dropped this in to my spreadsheet and then converted one of the Unix timestamps back into a date (using http://www.unixtimestamp.com/) but the date was off by one day. Just to double-check the math, I entered a formula in a cell to find the difference between 1/1/1970 and 1/1/1900. The result? 25568--one less than the $DayDifference you specify above.

Making that one change resulted in a Unix timestamp that, when converted back to mm/dd/yyyy matched the original.</description>
		<content:encoded><![CDATA[<p>Thank you for this article! It has greatly simplified a data import for me today.</p>
<p>I dropped this in to my spreadsheet and then converted one of the Unix timestamps back into a date (using <a href="http://www.unixtimestamp.com/)" rel="nofollow">http://www.unixtimestamp.com/)</a> but the date was off by one day. Just to double-check the math, I entered a formula in a cell to find the difference between 1/1/1970 and 1/1/1900. The result? 25568&#8211;one less than the $DayDifference you specify above.</p>
<p>Making that one change resulted in a Unix timestamp that, when converted back to mm/dd/yyyy matched the original.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
