<?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 problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896002#M840949</link>
    <description>Hello experts,&lt;BR /&gt;&lt;BR /&gt;Is there a way in HP UNIX to find the difference in days between two dates?&lt;BR /&gt;&lt;BR /&gt;TIA,&lt;BR /&gt;John&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Apr 2005 14:15:13 GMT</pubDate>
    <dc:creator>John Chaff</dc:creator>
    <dc:date>2005-04-13T14:15:13Z</dc:date>
    <item>
      <title>Date problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896002#M840949</link>
      <description>Hello experts,&lt;BR /&gt;&lt;BR /&gt;Is there a way in HP UNIX to find the difference in days between two dates?&lt;BR /&gt;&lt;BR /&gt;TIA,&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Apr 2005 14:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896002#M840949</guid>
      <dc:creator>John Chaff</dc:creator>
      <dc:date>2005-04-13T14:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896003#M840950</link>
      <description>There are many posts concerning a 'date_calj.sh' script out there. Available for download from these forums.&lt;BR /&gt;&lt;BR /&gt;I believe that is the name of the script. Will do all kinds of date calculations and math.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Apr 2005 14:21:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896003#M840950</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-04-13T14:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896004#M840951</link>
      <description>A date problem, hmmm, I wonder what tool to use?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DT1="01 31 2005"&lt;BR /&gt;DT2="04 13 2005"&lt;BR /&gt;&lt;BR /&gt;typeset -i DIFF=$(( $(caljd.sh ${DT2} - $(caljd.sh ${DT1}) ))&lt;BR /&gt;echo "Difference between ${DT2} and ${DT1} = ${DIFF} days."&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Apr 2005 14:34:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896004#M840951</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-04-13T14:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896005#M840952</link>
      <description>I should add invoke as caljd.sh -u for full usage and examples.</description>
      <pubDate>Wed, 13 Apr 2005 14:35:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896005#M840952</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-04-13T14:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896006#M840953</link>
      <description>Hi Clay,&lt;BR /&gt;&lt;BR /&gt;I ran your example and it prints an error:&lt;BR /&gt;&lt;BR /&gt;date.sh[5]   11 24 -4713 - 11 24 -4713 : syntax error&lt;BR /&gt;&lt;BR /&gt;Did you mistype your example?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;John&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Apr 2005 15:01:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896006#M840953</guid>
      <dc:creator>John Chaff</dc:creator>
      <dc:date>2005-04-13T15:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896007#M840954</link>
      <description>John, John, John, ...&lt;BR /&gt;&lt;BR /&gt;No but my psychic, Miss Cleo, tells me that you did. She said that my example was changed&lt;BR /&gt;from:&lt;BR /&gt;&lt;BR /&gt;DT1="01 31 2005"&lt;BR /&gt;DT2="04 13 2005"&lt;BR /&gt;&lt;BR /&gt;typeset -i DIFF=$(( $(caljd.sh ${DT2} - $(caljd.sh ${DT1}) ))&lt;BR /&gt;echo "Difference between ${DT2} and ${DT1} = ${DIFF} days."&lt;BR /&gt;&lt;BR /&gt;to:&lt;BR /&gt;&lt;BR /&gt;DT1="01/31/2005"&lt;BR /&gt;DT2="04/13/2005"&lt;BR /&gt;&lt;BR /&gt;typeset -i DIFF=$(( $(caljd.sh ${DT2} - $(caljd.sh ${DT1}) ))&lt;BR /&gt;echo "Difference between ${DT2} and ${DT1} = ${DIFF} days."&lt;BR /&gt;&lt;BR /&gt;Miss Cleo ran out of Windex so her crystal ball was a bit fuzzy; she couldn't quite see dates you entered but she could see the slashes.&lt;BR /&gt;&lt;BR /&gt;If you are going to use dates like 01/31/2005 then you must add the -c and -S "/" arguments. All of this was in the usage messages if you had bothered to do a caljd.sh -u.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Apr 2005 15:24:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896007#M840954</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-04-13T15:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896008#M840955</link>
      <description>Thank you Clay. That was the problem. You are right. I should have read the instructions. Sorry.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Apr 2005 15:51:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896008#M840955</guid>
      <dc:creator>John Chaff</dc:creator>
      <dc:date>2005-04-13T15:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896009#M840956</link>
      <description>Closed.</description>
      <pubDate>Wed, 13 Apr 2005 15:53:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-problem/m-p/4896009#M840956</guid>
      <dc:creator>John Chaff</dc:creator>
      <dc:date>2005-04-13T15:53:05Z</dc:date>
    </item>
  </channel>
</rss>

