<?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: change time man page in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280340#M671583</link>
    <description>Yes...........now its confusing me also.&lt;BR /&gt;&lt;BR /&gt;If we given&lt;BR /&gt;&lt;BR /&gt;time sleep 75&lt;BR /&gt;Then output should be like this 75.0 seconds but its coming 1:15.0&lt;BR /&gt;&lt;BR /&gt;SKR&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 03 Oct 2008 09:44:51 GMT</pubDate>
    <dc:creator>SKR_1</dc:creator>
    <dc:date>2008-10-03T09:44:51Z</dc:date>
    <item>
      <title>change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280335#M671578</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The time utility (buitin and /bin/time) outputs  the time command results with the format xx:yy.zz (where xx is in minutes, yy seconds, and zz in tenth of seconds) where its man pages says its output is in seconds.&lt;BR /&gt;&lt;BR /&gt;It may be time to change the man page, or to change the time utility:&lt;BR /&gt;&lt;BR /&gt;/bin/time sleep 75&lt;BR /&gt;&lt;BR /&gt;real     1:15.0&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         0.0&lt;BR /&gt;&lt;BR /&gt;/bin/time -p sleep 75&lt;BR /&gt;&lt;BR /&gt;real     1:15.0&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         0.0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Oct 2008 09:04:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280335#M671578</guid>
      <dc:creator>Brem Belguebli</dc:creator>
      <dc:date>2008-10-03T09:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280336#M671579</link>
      <description>Here the least unit for time is in seconds, that's why in man pages you will find seconds only.&lt;BR /&gt;&lt;BR /&gt;Let for example if you do&lt;BR /&gt;&lt;BR /&gt;time bdf&lt;BR /&gt;&lt;BR /&gt;real        0.1  ( seconds )&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         0.0&lt;BR /&gt;&lt;BR /&gt;you can't say 0.1 minute to this.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SKR&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Oct 2008 09:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280336#M671579</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2008-10-03T09:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280337#M671580</link>
      <description>Hi SKR,&lt;BR /&gt;&lt;BR /&gt;and how do you pronounce 1:15.0 ? &lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Fri, 03 Oct 2008 09:28:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280337#M671580</guid>
      <dc:creator>Brem Belguebli</dc:creator>
      <dc:date>2008-10-03T09:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280338#M671581</link>
      <description>1 minute and 15 seconds&lt;BR /&gt;&lt;BR /&gt;SKR</description>
      <pubDate>Fri, 03 Oct 2008 09:31:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280338#M671581</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2008-10-03T09:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280339#M671582</link>
      <description>&amp;gt;/bin/time sleep 75&lt;BR /&gt;&amp;gt; real 1:15.0&lt;BR /&gt;&amp;gt; user 0.0&lt;BR /&gt;&amp;gt; sys 0.0&lt;BR /&gt;&lt;BR /&gt;1:15 =&amp;gt; 1min:15 sec =&amp;gt; 75 sec ... what is the problem?</description>
      <pubDate>Fri, 03 Oct 2008 09:36:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280339#M671582</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2008-10-03T09:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280340#M671583</link>
      <description>Yes...........now its confusing me also.&lt;BR /&gt;&lt;BR /&gt;If we given&lt;BR /&gt;&lt;BR /&gt;time sleep 75&lt;BR /&gt;Then output should be like this 75.0 seconds but its coming 1:15.0&lt;BR /&gt;&lt;BR /&gt;SKR&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Oct 2008 09:44:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280340#M671583</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2008-10-03T09:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280341#M671584</link>
      <description>I think its clear. Any thing above 60 secs should be indicated by increment to 'minute'.&lt;BR /&gt;&lt;BR /&gt;# time sleep 55&lt;BR /&gt;real       55.0&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         0.0&lt;BR /&gt;&lt;BR /&gt;# time sleep 62&lt;BR /&gt;real     1:02.0&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         0.0&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Oct 2008 10:06:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280341#M671584</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2008-10-03T10:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280342#M671585</link>
      <description>Slow day at the office, guys???&lt;BR /&gt;&lt;BR /&gt;This sounds a lot like arguing over the pronunciation of potato . . . . or of tomato.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 03 Oct 2008 10:14:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280342#M671585</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-10-03T10:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280343#M671586</link>
      <description>Don't let the deciaml point at the end confuse you. The word "seconds" that is mentioned in the man page is telling you what the precision is in the time format. &lt;BR /&gt;Suppose you are looking at this string&lt;BR /&gt;1:15.0 &lt;BR /&gt;How would you know if it is for "1 hour 15 minutes" or for " 1 minute 15 seconds"? Since you know that the precision is in seconds, you must treat 1:15.0 as 1m15s. If you wanted to write "1hour 15minutes" you would write "1:15:0.0".</description>
      <pubDate>Fri, 03 Oct 2008 10:24:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280343#M671586</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2008-10-03T10:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280344#M671587</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My point was that my understanding of the man page (extract : Times are reported in seconds.) was supposed to give 75.0 instead of 1:15.0.&lt;BR /&gt;&lt;BR /&gt;Not a major issue, but, I need to parse the result and transform it to seconds.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Oct 2008 10:59:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280344#M671587</guid>
      <dc:creator>Brem Belguebli</dc:creator>
      <dc:date>2008-10-03T10:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280345#M671588</link>
      <description>I see. You want to count seconds using base 10, where the time format uses base 60. Well you have to convert ot base 10 as you mentioned.</description>
      <pubDate>Fri, 03 Oct 2008 11:04:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280345#M671588</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2008-10-03T11:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280346#M671589</link>
      <description>While the man page says seconds, if you saw some time output like this:&lt;BR /&gt; &lt;BR /&gt;real 45296.7&lt;BR /&gt;user 5678.9&lt;BR /&gt;sys 1744.0&lt;BR /&gt; &lt;BR /&gt;would it be more useful? By common convention, the ":" character separates hours, minutes and seconds. Of course, there may be a different method used in a different country or language (see man environ, specifically LC_TIME). The time program always shows seconds until 59.9, then shows mins:secs until 59:59.9 and then shows hrs:mins:secs. Computers are quite happy with 45296.7 but humans are more comfortable with 12:34:56.7</description>
      <pubDate>Fri, 03 Oct 2008 17:37:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280346#M671589</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-10-03T17:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: change time man page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280347#M671590</link>
      <description>Hi Brem:&lt;BR /&gt;&lt;BR /&gt;To add to Bill's discussion, here's a little Perl snippet to convert a time format of H:M:S.f to seconds:&lt;BR /&gt;&lt;BR /&gt;# TIME=12:34:56.7&lt;BR /&gt;# echo ${TIME} | perl -nle '@t=reverse split /:/;for (1,60,3600) {$sec+=$t[$i]*$_;$i++};END{print $sec}'&lt;BR /&gt;45296.7&lt;BR /&gt;&lt;BR /&gt;This works equally well for only minutes and seconds, too, like:&lt;BR /&gt;&lt;BR /&gt;# TIME=3:11.8&lt;BR /&gt;# echo ${TIME} | perl ...&lt;BR /&gt;191.8&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 03 Oct 2008 19:11:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-time-man-page/m-p/4280347#M671590</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-03T19:11:06Z</dc:date>
    </item>
  </channel>
</rss>

