<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Differnetiate Time stamp ..... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/differnetiate-time-stamp/m-p/3964117#M757355</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;if you do not mind using a lot of system resources (and will not wait for a perl one-liner), try the attached scrpt.&lt;BR /&gt;It counts the number of seconds from a certain date back to January 1st 00:00 of a certain year, e.g. 2000:&lt;BR /&gt;&lt;BR /&gt;File 1 --&amp;gt; Mar 19 12:23&lt;BR /&gt;$ ./return_seconds.sh 2000 2007 3 19 12 23 00&lt;BR /&gt;227535780&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;File 2 --&amp;gt; Mar 19 11:00&lt;BR /&gt;$ ./return_seconds.sh 2000 2007 3 19 11 00 00&lt;BR /&gt;227530800&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Difference in seconds between the two:&lt;BR /&gt;$ echo "227535780 - 227530800" | bc&lt;BR /&gt;4980&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;....and converted into minutes:&lt;BR /&gt;$ echo "4980 / 60" | bc&lt;BR /&gt;83&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
    <pubDate>Mon, 19 Mar 2007 08:53:18 GMT</pubDate>
    <dc:creator>john korterman</dc:creator>
    <dc:date>2007-03-19T08:53:18Z</dc:date>
    <item>
      <title>Differnetiate Time stamp .....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/differnetiate-time-stamp/m-p/3964115#M757353</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to differentiate(Subtract) time stamp of two files and i want the output in minutes ...&lt;BR /&gt;For ex: File 1 --&amp;gt; Mar 19 12:23&lt;BR /&gt;        File 2 --&amp;gt; Mar 19 11:00&lt;BR /&gt;&lt;BR /&gt;I want output as 83 (mins) ...... It should also take into account the date....</description>
      <pubDate>Mon, 19 Mar 2007 02:03:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/differnetiate-time-stamp/m-p/3964115#M757353</guid>
      <dc:creator>Manikandan R</dc:creator>
      <dc:date>2007-03-19T02:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Differnetiate Time stamp .....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/differnetiate-time-stamp/m-p/3964116#M757354</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;You might find A. Clay Stephenson's date hammer useful in such calculations.&lt;BR /&gt;&lt;BR /&gt;Perl&lt;BR /&gt;&lt;A href="http://hpux.ws/merijn/caljd-2.2.pl" target="_blank"&gt;http://hpux.ws/merijn/caljd-2.2.pl&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Shell&lt;BR /&gt;&lt;A href="http://hpux.ws/merijn/caljd-2.25.sh" target="_blank"&gt;http://hpux.ws/merijn/caljd-2.25.sh&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Mar 2007 03:37:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/differnetiate-time-stamp/m-p/3964116#M757354</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-03-19T03:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Differnetiate Time stamp .....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/differnetiate-time-stamp/m-p/3964117#M757355</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;if you do not mind using a lot of system resources (and will not wait for a perl one-liner), try the attached scrpt.&lt;BR /&gt;It counts the number of seconds from a certain date back to January 1st 00:00 of a certain year, e.g. 2000:&lt;BR /&gt;&lt;BR /&gt;File 1 --&amp;gt; Mar 19 12:23&lt;BR /&gt;$ ./return_seconds.sh 2000 2007 3 19 12 23 00&lt;BR /&gt;227535780&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;File 2 --&amp;gt; Mar 19 11:00&lt;BR /&gt;$ ./return_seconds.sh 2000 2007 3 19 11 00 00&lt;BR /&gt;227530800&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Difference in seconds between the two:&lt;BR /&gt;$ echo "227535780 - 227530800" | bc&lt;BR /&gt;4980&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;....and converted into minutes:&lt;BR /&gt;$ echo "4980 / 60" | bc&lt;BR /&gt;83&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Mar 2007 08:53:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/differnetiate-time-stamp/m-p/3964117#M757355</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2007-03-19T08:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Differnetiate Time stamp .....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/differnetiate-time-stamp/m-p/3964118#M757357</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;This Perl snippet will output the difference between the 'mtime' of two files in minutes:&lt;BR /&gt;&lt;BR /&gt;# perl -le '$f1=(stat($ARGV[0]))[9];$f2=(stat($ARGV[1]))[9];print (($f2-$f1)/60)' file1 file2&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 19 Mar 2007 09:27:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/differnetiate-time-stamp/m-p/3964118#M757357</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-03-19T09:27:50Z</dc:date>
    </item>
  </channel>
</rss>

