<?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="https://logs.paulooi.com/convert-epoch-using-date-command.php/feed" rel="self" type="application/rss+xml" />
	<link>https://logs.paulooi.com/convert-epoch-using-date-command.php</link>
	<description>Systems Admin, Web Development and etc</description>
	<lastBuildDate>Tue, 25 Jan 2011 09:02:11 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: MB		</title>
		<link>https://logs.paulooi.com/convert-epoch-using-date-command.php/comment-page-1#comment-75949</link>

		<dc:creator><![CDATA[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><![CDATA[$ 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] [+&#8221;Field Descriptors&#8221;]</p>
<p>System used is AIX&#8230;this doesn&#8217;t work</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: suresh		</title>
		<link>https://logs.paulooi.com/convert-epoch-using-date-command.php/comment-page-1#comment-75669</link>

		<dc:creator><![CDATA[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><![CDATA[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;&#062;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'&#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>https://logs.paulooi.com/convert-epoch-using-date-command.php/comment-page-1#comment-75577</link>

		<dc:creator><![CDATA[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><![CDATA[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>
