title: Solaris Convert Get Last Hour of Logs by Comparing the Timestamps
body: <p>I have a log that looks like this:</p>
  
  <pre><code>####&lt;Sep 16, 2014 6:12:45 PM EST&gt; &lt;Notice&gt; &lt;StdErr&gt; &lt;myserver&gt; &lt;myinstance&gt; &lt;[ACTIVE] ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1410913515898&gt; &lt;BEA-000000&gt; &lt;at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)&gt;
  ####&lt;Sep 16, 2014 9:45:08 PM EST&gt; &lt;Notice&gt; &lt;StdErr&gt; &lt;myserver&gt; &lt;myinstance&gt; &lt;[ACTIVE] ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1410913515898&gt; &lt;BEA-000000&gt; &lt;at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)&gt;
  ####&lt;Sep 16, 2014 10:27:26 PM EST&gt; &lt;Notice&gt; &lt;StdErr&gt; &lt;myserver&gt; &lt;myinstance&gt; &lt;[ACTIVE] ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1410913515898&gt; &lt;BEA-000000&gt; &lt;at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)&gt;
  ####&lt;Sep 16, 2014 11:25:16 PM EST&gt; &lt;Notice&gt; &lt;StdErr&gt; &lt;myserver&gt; &lt;myinstance&gt; &lt;[ACTIVE] ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1410913515898&gt; &lt;BEA-000000&gt; &lt;at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)&gt;
  </code></pre>
  
  <p>Let's say the time is currently 11:26 PM EST. I only want to get entries written in the last hour. I've previously used something like this:</p>
  
  <pre><code>nawk -F "&lt;" -v MyDate=`TZ=MYT+6 date "+%b %d, %Y%l:%M:%S %Z"` ' {if ($2 &gt; MyDate) print $2}'
  </code></pre>
  
  <p>but i'm getting the following error when attempting to run this:</p>
  
  <pre><code>nawk: syntax error at source line 1
    context is
       &gt;&gt;&gt; 16, &lt;&lt;&lt;
  nawk: bailing out at source line 1
  </code></pre>
  
  <p><strong>How can I list the entries that were written in the last hour using the Solaris tools (NOT GNU)?</strong></p>