<?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: TIME Difference command?? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096866#M631350</link>
    <description>Sorry guys wrong subject header should be system administration.</description>
    <pubDate>Sun, 19 Oct 2003 22:02:23 GMT</pubDate>
    <dc:creator>Ferdie Castro</dc:creator>
    <dc:date>2003-10-19T22:02:23Z</dc:date>
    <item>
      <title>TIME Difference command??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096865#M631349</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is there a command in unix which computes time differece . example date/time1 - date/time2.&lt;BR /&gt;format of date time is same output of date commmand ex.&lt;BR /&gt;Mon Oct 20 14:22:52 EAT 2003&lt;BR /&gt;Hope you could help me with this. thanks.</description>
      <pubDate>Sun, 19 Oct 2003 21:45:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096865#M631349</guid>
      <dc:creator>Ferdie Castro</dc:creator>
      <dc:date>2003-10-19T21:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: TIME Difference command??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096866#M631350</link>
      <description>Sorry guys wrong subject header should be system administration.</description>
      <pubDate>Sun, 19 Oct 2003 22:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096866#M631350</guid>
      <dc:creator>Ferdie Castro</dc:creator>
      <dc:date>2003-10-19T22:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: TIME Difference command??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096867#M631351</link>
      <description>I am sorry, there is no such command under unix. But what i can suggest is write a script that converts the time to sec from 1970 then substract both of them which you get in Sec. &lt;BR /&gt;</description>
      <pubDate>Sun, 19 Oct 2003 23:46:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096867#M631351</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-10-19T23:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: TIME Difference command??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096868#M631352</link>
      <description>&lt;BR /&gt;No such command in unix. May be you can write a script to do that. OR convert dates to to epoc(seconds since 1970) and compare.</description>
      <pubDate>Sun, 19 Oct 2003 23:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096868#M631352</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-10-19T23:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: TIME Difference command??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096869#M631353</link>
      <description>No standard command but there is a very well known script which allows you to do all kinds of stuff with dates. Search the forums for "caljd".&lt;BR /&gt;-- Graham</description>
      <pubDate>Mon, 20 Oct 2003 02:17:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096869#M631353</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-10-20T02:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: TIME Difference command??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096870#M631354</link>
      <description>Hi,&lt;BR /&gt;the attached script can return the seconds since unix calender start (midnight 1970)  and a specified time after that. It can be used in two ways: without parameters it uses the date command for finding the current system time and then counts the number of secs since unix cal start and that e.g.:&lt;BR /&gt;# ./return_seconds.sh&lt;BR /&gt;1066639969&lt;BR /&gt; &lt;BR /&gt;Alternatively, you can specify 7 parameters for time, say for this date:&lt;BR /&gt;Mon Oct 20 14:22:52 2003&lt;BR /&gt; &lt;BR /&gt;you need to specify this: &lt;BR /&gt;# ./return_seconds.sh 1970 2003 10 20 14 22 52&lt;BR /&gt; &lt;BR /&gt;1066659772&lt;BR /&gt; &lt;BR /&gt;The parameters are described in the script. &lt;BR /&gt; &lt;BR /&gt;The difference:&lt;BR /&gt;# echo $(( 1066659772 - 1066639969))    &lt;BR /&gt;19803&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Mon, 20 Oct 2003 03:44:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-command/m-p/3096870#M631354</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-10-20T03:44:35Z</dc:date>
    </item>
  </channel>
</rss>

