<?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: BASH: Convert Unix Timestamp to a Date</title>
	<atom:link href="http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/</link>
	<description>Just another LR2 Blogs weblog</description>
	<lastBuildDate>Fri, 21 Nov 2008 21:46:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: knarf</title>
		<link>http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/comment-page-1/#comment-180</link>
		<dc:creator>knarf</dc:creator>
		<pubDate>Sat, 17 Mar 2007 15:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-180</guid>
		<description>date -d @1000000042</description>
		<content:encoded><![CDATA[<p>date -d @1000000042</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liber &#187; Calcule calendarisitice cu date</title>
		<link>http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/comment-page-1/#comment-179</link>
		<dc:creator>liber &#187; Calcule calendarisitice cu date</dc:creator>
		<pubDate>Thu, 22 Feb 2007 23:11:48 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-179</guid>
		<description>[...] Puteţi consulta deasemenea şi pagina asta: http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/. [...]</description>
		<content:encoded><![CDATA[<p>[...] Puteţi consulta deasemenea şi pagina asta: <a href="http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/" rel="nofollow">http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dying_sphynx</title>
		<link>http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/comment-page-1/#comment-178</link>
		<dc:creator>dying_sphynx</dc:creator>
		<pubDate>Thu, 25 Jan 2007 16:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-178</guid>
		<description>Oh, this way with &quot;@&quot; is the coolest one!
Thanks you, Thomas!

BTW, I have no mentions about this &quot;@&quot; in &#039;man date&#039;, but I have it in &#039;info date&#039; :P</description>
		<content:encoded><![CDATA[<p>Oh, this way with &#8220;@&#8221; is the coolest one!<br />
Thanks you, Thomas!</p>
<p>BTW, I have no mentions about this &#8220;@&#8221; in &#8216;man date&#8217;, but I have it in &#8216;info date&#8217; <img src='http://anton.lr2.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas the Rhymer</title>
		<link>http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/comment-page-1/#comment-177</link>
		<dc:creator>Thomas the Rhymer</dc:creator>
		<pubDate>Fri, 12 Jan 2007 03:46:20 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-177</guid>
		<description>With GNU date on Ubuntu, the command is date -d @1168573011, and on NetBSD it&#039;s date -r 1168573011.

The manual command is almost funny: `man date`.</description>
		<content:encoded><![CDATA[<p>With GNU date on Ubuntu, the command is date -d @1168573011, and on NetBSD it&#8217;s date -r 1168573011.</p>
<p>The manual command is almost funny: `man date`.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/comment-page-1/#comment-176</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Thu, 11 Jan 2007 15:51:27 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-176</guid>
		<description>It&#039;s worth noting that the &quot;date&quot; and &quot;awk&quot; provided on Solaris 9 or 10 do not support the various syntaxes used here *sniff*</description>
		<content:encoded><![CDATA[<p>It&#8217;s worth noting that the &#8220;date&#8221; and &#8220;awk&#8221; provided on Solaris 9 or 10 do not support the various syntaxes used here *sniff*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/comment-page-1/#comment-175</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 18 Dec 2006 21:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-175</guid>
		<description>got it!  qq is our friend!

alias ctime &#039;perl -e &quot;print scalar localtime(\!^).qq(\n)&quot;&#039;</description>
		<content:encoded><![CDATA[<p>got it!  qq is our friend!</p>
<p>alias ctime &#8216;perl -e &#8220;print scalar localtime(\!^).qq(\n)&#8221;&#8216;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/comment-page-1/#comment-172</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 18 Dec 2006 17:54:34 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-172</guid>
		<description>Anyone know how to make it into a csh alias?  I can&#039;t figure out how to escape all of the &#039; and &quot;&#039;s.  I would love to have an alias so that I can just type:  ctime 11645789.

I know I could easily move this same code into a script and put that in my path for the same effect but I&#039;m also running on different machines and it&#039;s easier to move an alias than a script . . .</description>
		<content:encoded><![CDATA[<p>Anyone know how to make it into a csh alias?  I can&#8217;t figure out how to escape all of the &#8216; and &#8220;&#8217;s.  I would love to have an alias so that I can just type:  ctime 11645789.</p>
<p>I know I could easily move this same code into a script and put that in my path for the same effect but I&#8217;m also running on different machines and it&#8217;s easier to move an alias than a script . . .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/comment-page-1/#comment-174</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Sun, 10 Dec 2006 22:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-174</guid>
		<description>Isaac,  In my example above I defined EPOCH as 1 billion.  I don&#039;t know of any systems that define EPOCH automagically.

The example could have been EPOCH=`date +%s` but if you&#039;re using date to get an epoch then there is no sense in converting it since a different date argument would get the format you need.</description>
		<content:encoded><![CDATA[<p>Isaac,  In my example above I defined EPOCH as 1 billion.  I don&#8217;t know of any systems that define EPOCH automagically.</p>
<p>The example could have been EPOCH=`date +%s` but if you&#8217;re using date to get an epoch then there is no sense in converting it since a different date argument would get the format you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Isaac</title>
		<link>http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/comment-page-1/#comment-173</link>
		<dc:creator>Isaac</dc:creator>
		<pubDate>Wed, 06 Dec 2006 14:30:08 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-173</guid>
		<description>My system (AIX) does not define $EPOCH.</description>
		<content:encoded><![CDATA[<p>My system (AIX) does not define $EPOCH.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: S. Mayrand</title>
		<link>http://anton.lr2.com/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/comment-page-1/#comment-171</link>
		<dc:creator>S. Mayrand</dc:creator>
		<pubDate>Thu, 23 Nov 2006 08:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://anton.lr2.com/archives/2006/04/06/convert-a-unix-epoch-timestamp-to-a-date-in-bash/#comment-171</guid>
		<description>The pipe in the awk example is inefficient.  It&#039;s easily done without if you know how to nest double-quotes properly:

DATE=$(awk &quot;BEGIN { print strftime(\&quot;%c\&quot;,$EPOCH) }&quot;)

Doing everything in awk&#039;s BEGIN block ensures that it will not wait for piped input (more efficient again).  Bourne shells does variable expansions inside of double-quotes, so $EPOCH gets evaluated properly.</description>
		<content:encoded><![CDATA[<p>The pipe in the awk example is inefficient.  It&#8217;s easily done without if you know how to nest double-quotes properly:</p>
<p>DATE=$(awk &#8220;BEGIN { print strftime(\&#8221;%c\&#8221;,$EPOCH) }&#8221;)</p>
<p>Doing everything in awk&#8217;s BEGIN block ensures that it will not wait for piped input (more efficient again).  Bourne shells does variable expansions inside of double-quotes, so $EPOCH gets evaluated properly.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
