<?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: subtract Date in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/subtract-date/m-p/4103259#M730907</link>
    <description>&lt;!--!*#--&gt;#include &lt;TIME.H&gt;&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;  time_t  x;&lt;BR /&gt;  char buf[512];&lt;BR /&gt;  time(&amp;amp;x);&lt;BR /&gt;  x=x-2*3600;&lt;BR /&gt;  strftime(buf,511,"%H:%M:%S",localtime(&amp;amp;x));&lt;BR /&gt;  printf(buf);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;in shell, but without taking DST in account:&lt;BR /&gt;typeset -i x&lt;BR /&gt;x=$(date +%H)&lt;BR /&gt;x=x+98&lt;BR /&gt;heure=${x#1}$(date +:%M:%S)&lt;BR /&gt;&lt;BR /&gt;&lt;/TIME.H&gt;</description>
    <pubDate>Mon, 19 Nov 2007 05:05:51 GMT</pubDate>
    <dc:creator>Laurent Menase</dc:creator>
    <dc:date>2007-11-19T05:05:51Z</dc:date>
    <item>
      <title>subtract Date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/subtract-date/m-p/4103256#M730904</link>
      <description>Hi,&lt;BR /&gt;Iam working in HP-UX 11i env, please help me how to subtract current date minus 2 hours.&lt;BR /&gt;I want to display the time before 2 hours.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Balaji</description>
      <pubDate>Thu, 15 Nov 2007 11:08:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/subtract-date/m-p/4103256#M730904</guid>
      <dc:creator>HartfordBala1973</dc:creator>
      <dc:date>2007-11-15T11:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: subtract Date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/subtract-date/m-p/4103257#M730905</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Use perl;&lt;BR /&gt;&lt;BR /&gt;# perl -le 'print scalar localtime(time-(2*60*60))'&lt;BR /&gt;&lt;BR /&gt;This subtracts 2-hours (in seconds) from the current date and time.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 15 Nov 2007 11:12:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/subtract-date/m-p/4103257#M730905</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-11-15T11:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: subtract Date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/subtract-date/m-p/4103258#M730906</link>
      <description>Hi,&lt;BR /&gt;you can look for caljd script in the forum.&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Mon, 19 Nov 2007 04:16:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/subtract-date/m-p/4103258#M730906</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-11-19T04:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: subtract Date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/subtract-date/m-p/4103259#M730907</link>
      <description>&lt;!--!*#--&gt;#include &lt;TIME.H&gt;&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;  time_t  x;&lt;BR /&gt;  char buf[512];&lt;BR /&gt;  time(&amp;amp;x);&lt;BR /&gt;  x=x-2*3600;&lt;BR /&gt;  strftime(buf,511,"%H:%M:%S",localtime(&amp;amp;x));&lt;BR /&gt;  printf(buf);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;in shell, but without taking DST in account:&lt;BR /&gt;typeset -i x&lt;BR /&gt;x=$(date +%H)&lt;BR /&gt;x=x+98&lt;BR /&gt;heure=${x#1}$(date +:%M:%S)&lt;BR /&gt;&lt;BR /&gt;&lt;/TIME.H&gt;</description>
      <pubDate>Mon, 19 Nov 2007 05:05:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/subtract-date/m-p/4103259#M730907</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2007-11-19T05:05:51Z</dc:date>
    </item>
  </channel>
</rss>

