<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sébastien Barbieri's blog &#187; unix</title>
	<atom:link href="http://blog.sbw.be/tag/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sbw.be</link>
	<description>My life, my work, my projects</description>
	<lastBuildDate>Sat, 24 Dec 2011 00:12:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>The last day of epoch (32) &#8211; toute une époque :-)</title>
		<link>http://blog.sbw.be/2009/06/13/the-last-day-of-epoch-32-toute-une-epoque/</link>
		<comments>http://blog.sbw.be/2009/06/13/the-last-day-of-epoch-32-toute-une-epoque/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 11:30:08 +0000</pubDate>
		<dc:creator>Sébastien Barbieri</dc:creator>
				<category><![CDATA[8th chakra]]></category>
		<category><![CDATA[freelance]]></category>
		<category><![CDATA[Questions existentielles]]></category>
		<category><![CDATA[truc de g33k]]></category>
		<category><![CDATA[epoch]]></category>
		<category><![CDATA[timestamp]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://blog.sbw.be/?p=261</guid>
		<description><![CDATA[Is Tue, 19 Jan 2038 04:14:07 +0100. The next second, we will be back on Fri, 13 Dec 1901 20:55:13 +0009. And unfortunately, I will not be retired at that time&#8230; I&#8217;m pretty sure that it will be like in the 80s with every developer thinking that his code will last only few months (years)&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>Is <strong>Tue, 19 Jan 2038 04:14:07 +0100</strong>.<br />
The next second, we will be back on <strong>Fri, 13 Dec 1901 20:55:13 +0009</strong>.</p>
<p>And unfortunately, I will not be retired at that time&#8230; I&#8217;m pretty sure that it will be like in the 80s with every developer thinking that his code will last only few months (years)&#8230; when it will actually last much longer.</p>
<p>Most of the liunuix (linux and unix) systems use timestamp stored as an unisgned integer 32 bit starting Thu, 01 Jan 1970 01:00:00 +0100.</p>
<p>The idea was to be able to measure time for a &#8220;long&#8221; period of time, from now (in the 70s) and in the past.<br />
So they decided to use half of the 2^32 for the past (prior to 1/1/1970) and the other half for the future.</p>
<p>So be it&#8230;</p>
<p>Now we are about 40 years later, and we still use the same representation. We already had a party for the <a href="http://code.sbw.be/php/timestamp.php?timestamp=1234567890">unix timestamp 1234567890</a> (which is quite stupid because it&#8217;s in base 10).</p>
<p>And now javascript, Java, PHP and C &#8230; use the unix timestamp&#8230; which means ajax, web 2.0, comet &#8230; which means: most of the online banking system, internet sites and all the smalls scripts that in few line check your credential and your billing to allow you to connect to the Internet&#8230; All the logging system, all the monitoring systems&#8230; well everything that you don&#8217;t see, just under the internet sea you surf on.</p>
<p>So what will be the next party thema?</p>
<ul>
<li>the end of the internet as we knew it</li>
<li>the end of the unix system</li>
<li>the 0&#215;80000000 seconds since epoch?</li>
</ul>
<p>Anyway, because of the ongoing ecological breakdown, the human kind will probably collapse before&#8230; so after the <a href="http://en.wikipedia.org/wiki/Y2K38">Y2K38</a> bug, the world will just be their kingdom. The kingdom of bugs.</p>
<p>Unless we spend time (which is running) in each of our application to think about that right now (and if we spend just about the same amount of time solving the earth ecology problem it will not be useless).</p>
<p><script language="javascript" type="text/javascript">
today  = new Date();
todayEpoch  = today.getTime();
targetEpoch = 2147483647000;</p>
<p>daysLeft = Math.floor(((targetEpoch - todayEpoch) / (60*60*24)) / 1000);
document.write("You still have: "+daysLeft+" days ");
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sbw.be/2009/06/13/the-last-day-of-epoch-32-toute-une-epoque/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

