<?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 Date×tamp use in scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/date-tamp-use-in-scripts/m-p/2433428#M3947</link>
    <description>I want to use a date variable in a (crontab-script to monitor performance of our AutoRAID 12h system (arraydsp -r and arraydsp -m).&lt;BR /&gt;The required dates are the current date and timestamp as well as the same variable from an earlier period.&lt;BR /&gt;The required format is mmddhhmm (month, day, hour, minutes). I can get date + time with the date +%m%d%H%M command but have to gave an older time and date as well.&lt;BR /&gt;How can I perform a calculation using date to get, for example, the current date and time minus six hours.&lt;BR /&gt;</description>
    <pubDate>Fri, 28 Jul 2000 12:29:12 GMT</pubDate>
    <dc:creator>Maarten van Maanen</dc:creator>
    <dc:date>2000-07-28T12:29:12Z</dc:date>
    <item>
      <title>Date×tamp use in scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-tamp-use-in-scripts/m-p/2433428#M3947</link>
      <description>I want to use a date variable in a (crontab-script to monitor performance of our AutoRAID 12h system (arraydsp -r and arraydsp -m).&lt;BR /&gt;The required dates are the current date and timestamp as well as the same variable from an earlier period.&lt;BR /&gt;The required format is mmddhhmm (month, day, hour, minutes). I can get date + time with the date +%m%d%H%M command but have to gave an older time and date as well.&lt;BR /&gt;How can I perform a calculation using date to get, for example, the current date and time minus six hours.&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jul 2000 12:29:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-tamp-use-in-scripts/m-p/2433428#M3947</guid>
      <dc:creator>Maarten van Maanen</dc:creator>
      <dc:date>2000-07-28T12:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date×tamp use in scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-tamp-use-in-scripts/m-p/2433429#M3948</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;i think this job goes only with a little C programm. I put it at the attachment.&lt;BR /&gt;Save the C source into pasttime.c and compile with cc pasttime.c -o pasttime&lt;BR /&gt;&lt;BR /&gt;Usage: pasttime &lt;HOURS&gt;&lt;BR /&gt;&lt;BR /&gt;The output is what you want to get for arraydsp.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Andrew&lt;/HOURS&gt;</description>
      <pubDate>Fri, 28 Jul 2000 12:40:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-tamp-use-in-scripts/m-p/2433429#M3948</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-07-28T12:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date×tamp use in scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-tamp-use-in-scripts/m-p/2433430#M3949</link>
      <description>The (not so) easy way is to convert your date/times to binary seconds, do your arithmetic and then convert them back to date/time.&lt;BR /&gt;&lt;BR /&gt;How is your C programming? man ctime gives details on the functions that you need (localtime, time etc).&lt;BR /&gt;&lt;BR /&gt;If C is not your forte, it could also be done in Perl.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Fri, 28 Jul 2000 12:41:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-tamp-use-in-scripts/m-p/2433430#M3949</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-07-28T12:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date×tamp use in scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-tamp-use-in-scripts/m-p/2433431#M3950</link>
      <description>DAY=`TZ=MST+17MDT date +%d%H%M`&lt;BR /&gt;&lt;BR /&gt;Will give previous 24 hrs hours in MST. You will have to play with and modify your TZ &lt;BR /&gt;value.</description>
      <pubDate>Fri, 28 Jul 2000 12:45:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-tamp-use-in-scripts/m-p/2433431#M3950</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-07-28T12:45:05Z</dc:date>
    </item>
  </channel>
</rss>

