<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Timestamps for Log Files</title>
	<atom:link href="http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/</link>
	<description>UNIX / Linux Shell Hints and Tips&#160;&#160;&#160;&#160;&#160;&#160;(a http://steve-parker.org/sh/sh.shtml subproject)</description>
	<lastBuildDate>Sun, 31 Mar 2013 18:54:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: linux shell date string &#171; Lost Ferry</title>
		<link>http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-5535</link>
		<dc:creator><![CDATA[linux shell date string &#171; Lost Ferry]]></dc:creator>
		<pubDate>Fri, 18 Nov 2011 15:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-5535</guid>
		<description><![CDATA[[...] shell date&#160;string  from: [1] [...]]]></description>
		<content:encoded><![CDATA[<p>[...] shell date&nbsp;string  from: [1] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 2010 in review &#171; *nix Shell</title>
		<link>http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-5378</link>
		<dc:creator><![CDATA[2010 in review &#171; *nix Shell]]></dc:creator>
		<pubDate>Sun, 02 Jan 2011 12:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-5378</guid>
		<description><![CDATA[[...] Timestamps for Log Files March 20074 comments  3 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Timestamps for Log Files March 20074 comments  3 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Craig &#187; Links for the Week Ending March 09, 2008</title>
		<link>http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-5246</link>
		<dc:creator><![CDATA[Christopher Craig &#187; Links for the Week Ending March 09, 2008]]></dc:creator>
		<pubDate>Wed, 11 Mar 2009 18:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-5246</guid>
		<description><![CDATA[[...] Timestamps for Log Files « *nix Shell [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Timestamps for Log Files « *nix Shell [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: unixshell</title>
		<link>http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-40</link>
		<dc:creator><![CDATA[unixshell]]></dc:creator>
		<pubDate>Fri, 16 Mar 2007 20:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-40</guid>
		<description><![CDATA[It should be simple, but it&#039;s not. I made the mistake a few years ago, of writing a shell script which used GNU&#039;s &#039;%s&#039; switch... I didn&#039;t think to test it on Solaris, but the person I&#039;d written the script for was running Solaris, which has same (UNIX) syntax as AIX. The workaround I used was to write a very small C program, like this:

/*   start of C program */
#include &lt;stdio.h&gt;
#include &lt;time.h&gt;

int main()
{
        time_t t;
        (void)time(&amp;t);
        printf(&quot;%d\n&quot;, t);
}
/*   end of C program */

This provides the same output as `date +%s`:

$ ./d ; date +%s
1174077604
1174077604
$]]></description>
		<content:encoded><![CDATA[<p>It should be simple, but it&#8217;s not. I made the mistake a few years ago, of writing a shell script which used GNU&#8217;s &#8216;%s&#8217; switch&#8230; I didn&#8217;t think to test it on Solaris, but the person I&#8217;d written the script for was running Solaris, which has same (UNIX) syntax as AIX. The workaround I used was to write a very small C program, like this:</p>
<p>/*   start of C program */<br />
#include &lt;stdio.h&gt;<br />
#include &lt;time.h&gt;</p>
<p>int main()<br />
{<br />
        time_t t;<br />
        (void)time(&amp;t);<br />
        printf(&#8220;%d\n&#8221;, t);<br />
}<br />
/*   end of C program */</p>
<p>This provides the same output as `date +%s`:</p>
<p>$ ./d ; date +%s<br />
1174077604<br />
1174077604<br />
$</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HappyD</title>
		<link>http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-39</link>
		<dc:creator><![CDATA[HappyD]]></dc:creator>
		<pubDate>Fri, 16 Mar 2007 19:39:09 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-39</guid>
		<description><![CDATA[Great tutorial, now I have a special twist and question for you. I am on an AIX host which for whatever reason IBM decided not to use GNU date. I have two existing dates already pulled from a log file and I would like to get the time between them. Generally I would use the same method you do only like this: $date -d &quot;Fri Mar 16 12:06:03 MST 2007&quot; +%s, but an input option does not exist on AIX&#039;s date command to use another date besides sysdate :( Is there any other way that you know of to take an existing date string and convert it into seconds from the unix epoch? I&#039;ve thought about doing it in temp tables in Oracle, but that&#039;s an overly taxing way to handle what should be a quick timestamp calculation...]]></description>
		<content:encoded><![CDATA[<p>Great tutorial, now I have a special twist and question for you. I am on an AIX host which for whatever reason IBM decided not to use GNU date. I have two existing dates already pulled from a log file and I would like to get the time between them. Generally I would use the same method you do only like this: $date -d &#8220;Fri Mar 16 12:06:03 MST 2007&#8243; +%s, but an input option does not exist on AIX&#8217;s date command to use another date besides sysdate <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Is there any other way that you know of to take an existing date string and convert it into seconds from the unix epoch? I&#8217;ve thought about doing it in temp tables in Oracle, but that&#8217;s an overly taxing way to handle what should be a quick timestamp calculation&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: End Lands &#187; Timestamps for Log Files</title>
		<link>http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-36</link>
		<dc:creator><![CDATA[End Lands &#187; Timestamps for Log Files]]></dc:creator>
		<pubDate>Sun, 11 Mar 2007 01:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-36</guid>
		<description><![CDATA[[...] post by unixshell and software by Elliott Back    [...]]]></description>
		<content:encoded><![CDATA[<p>[...] post by unixshell and software by Elliott Back    [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
