<?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 Manipulating TIME in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/manipulating-time/m-p/4913214#M406468</link>
    <description>Hello There!&lt;BR /&gt;Using HP-UX 11i&lt;BR /&gt;&lt;BR /&gt;Well, I have a problem calculating time... Everytime my script runs I need it to increase one more minute in the "TIME" variable...&lt;BR /&gt;&lt;BR /&gt;I'm collecting "TIME" this way:&lt;BR /&gt;&lt;BR /&gt;TIME=`date +%H:%M:%S`&lt;BR /&gt;&lt;BR /&gt;So, after that i need to increase 1 minute in this TIME variable...For Ex:&lt;BR /&gt;&lt;BR /&gt;If TIME = 14:26:32&lt;BR /&gt;I need it to become 14:27:32&lt;BR /&gt;&lt;BR /&gt;Any ideas about how can I do it!?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Rafael M. Braga</description>
    <pubDate>Mon, 18 Jul 2005 10:57:06 GMT</pubDate>
    <dc:creator>Rafael Mendonça Braga</dc:creator>
    <dc:date>2005-07-18T10:57:06Z</dc:date>
    <item>
      <title>Manipulating TIME</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/manipulating-time/m-p/4913214#M406468</link>
      <description>Hello There!&lt;BR /&gt;Using HP-UX 11i&lt;BR /&gt;&lt;BR /&gt;Well, I have a problem calculating time... Everytime my script runs I need it to increase one more minute in the "TIME" variable...&lt;BR /&gt;&lt;BR /&gt;I'm collecting "TIME" this way:&lt;BR /&gt;&lt;BR /&gt;TIME=`date +%H:%M:%S`&lt;BR /&gt;&lt;BR /&gt;So, after that i need to increase 1 minute in this TIME variable...For Ex:&lt;BR /&gt;&lt;BR /&gt;If TIME = 14:26:32&lt;BR /&gt;I need it to become 14:27:32&lt;BR /&gt;&lt;BR /&gt;Any ideas about how can I do it!?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Rafael M. Braga</description>
      <pubDate>Mon, 18 Jul 2005 10:57:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/manipulating-time/m-p/4913214#M406468</guid>
      <dc:creator>Rafael Mendonça Braga</dc:creator>
      <dc:date>2005-07-18T10:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating TIME</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/manipulating-time/m-p/4913215#M406469</link>
      <description>echo $TIME|awk -F " '{OFS=":";print $1,$2,$3}'&lt;BR /&gt;The catch is if minutes column is 60, you would increment hour feild and make second field to 0.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Mon, 18 Jul 2005 11:27:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/manipulating-time/m-p/4913215#M406469</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-07-18T11:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating TIME</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/manipulating-time/m-p/4913216#M406470</link>
      <description>Instead, you can do this&lt;BR /&gt;HOUR=`date +%H`&lt;BR /&gt;MINUTE=`date +%M`&lt;BR /&gt;SECOND=`date +%S`&lt;BR /&gt;&lt;BR /&gt;let NEW_MINUTE=${MINUTE}+1&lt;BR /&gt;&lt;BR /&gt;if [ $NEW_MINUTE -eq 60 ]&lt;BR /&gt;then&lt;BR /&gt;NEW_MINUTE=00&lt;BR /&gt;let HOUR=${HOUR}+1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if [ $HOUR -eq 24 ]&lt;BR /&gt;then &lt;BR /&gt;HOUR=00&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;TIME=`printf ${HOUR}":"${NEW_MINUTE}":"${SECOND}`&lt;BR /&gt;&lt;BR /&gt;hope this helps&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jul 2005 11:48:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/manipulating-time/m-p/4913216#M406470</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-18T11:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating TIME</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/manipulating-time/m-p/4913217#M406471</link>
      <description>Thanks MEL...&lt;BR /&gt;10 for you!!</description>
      <pubDate>Mon, 18 Jul 2005 12:04:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/manipulating-time/m-p/4913217#M406471</guid>
      <dc:creator>Rafael Mendonça Braga</dc:creator>
      <dc:date>2005-07-18T12:04:07Z</dc:date>
    </item>
  </channel>
</rss>

