<?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: convert epoch using date command</title>
	<atom:link href="http://systems.takizo.com/2008/04/13/convert-epoch-using-date-command/feed/" rel="self" type="application/rss+xml" />
	<link>http://systems.takizo.com/2008/04/13/convert-epoch-using-date-command/</link>
	<description>the systems admin blog</description>
	<lastBuildDate>Mon, 01 Feb 2010 17:35:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: MB</title>
		<link>http://systems.takizo.com/2008/04/13/convert-epoch-using-date-command/comment-page-1/#comment-75949</link>
		<dc:creator>MB</dc:creator>
		<pubDate>Thu, 30 Jul 2009 21:04:08 +0000</pubDate>
		<guid isPermaLink="false">http://systems.takizo.com/?p=223#comment-75949</guid>
		<description>$ date +%s -d&quot;Jan 1, 1980 00:00:01&quot;
date: 0551-402 Invalid character in date/time specification.
Usage: date [-u] [+&quot;Field Descriptors&quot;]

System used is AIX...this doesn&#039;t work</description>
		<content:encoded><![CDATA[<p>$ date +%s -d&#8221;Jan 1, 1980 00:00:01&#8243;<br />
date: 0551-402 Invalid character in date/time specification.<br />
Usage: date [-u] [+"Field Descriptors"]</p>
<p>System used is AIX&#8230;this doesn&#8217;t work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suresh</title>
		<link>http://systems.takizo.com/2008/04/13/convert-epoch-using-date-command/comment-page-1/#comment-75669</link>
		<dc:creator>suresh</dc:creator>
		<pubDate>Tue, 18 Nov 2008 10:03:06 +0000</pubDate>
		<guid isPermaLink="false">http://systems.takizo.com/?p=223#comment-75669</guid>
		<description>Hi, 
I trying to convert epoch seconds to D/M/Y H:M:S.s format. I am passing epoch seconds as an argument to perl file. 
Inside perl file, the code looks like this:

my $epoch = $ARGV[0];
open(OUT, &quot;&gt;c:/dateResultFile.txt&quot;);
my $str = &quot;date -d &#039;1970-01-01 $epoch sec&#039;&quot; ;
print OUT &quot;$str\n&quot;;
close(OUT);

when i executed this code, i am getting i am not getting the date as i expected.
Please suggest me the solution.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I trying to convert epoch seconds to D/M/Y H:M:S.s format. I am passing epoch seconds as an argument to perl file.<br />
Inside perl file, the code looks like this:</p>
<p>my $epoch = $ARGV[0];<br />
open(OUT, &#8220;&gt;c:/dateResultFile.txt&#8221;);<br />
my $str = &#8220;date -d &#8216;1970-01-01 $epoch sec&#8217;&#8221; ;<br />
print OUT &#8220;$str\n&#8221;;<br />
close(OUT);</p>
<p>when i executed this code, i am getting i am not getting the date as i expected.<br />
Please suggest me the solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patric</title>
		<link>http://systems.takizo.com/2008/04/13/convert-epoch-using-date-command/comment-page-1/#comment-75577</link>
		<dc:creator>Patric</dc:creator>
		<pubDate>Mon, 14 Jul 2008 10:05:15 +0000</pubDate>
		<guid isPermaLink="false">http://systems.takizo.com/?p=223#comment-75577</guid>
		<description>why not use the following? 
date -d &#039;@&#039;

e.g. date -d @1216024547
Mon Jul 14 10:35:47 CEST 2008</description>
		<content:encoded><![CDATA[<p>why not use the following?<br />
date -d &#8216;@&#8217;</p>
<p>e.g. date -d @1216024547<br />
Mon Jul 14 10:35:47 CEST 2008</p>
]]></content:encoded>
	</item>
</channel>
</rss>
