<?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: Days between, awk? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755854#M835522</link>
    <description>Check out A. Clay's newest version of caljd.sh (and caljd.pl) at this thread.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1fb33a7b3682d611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1fb33a7b3682d611abdb0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This one allows you to specify a date as one string.  Hopefully this'll help you.</description>
    <pubDate>Mon, 01 Jul 2002 21:02:12 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2002-07-01T21:02:12Z</dc:date>
    <item>
      <title>Days between, awk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755853#M835521</link>
      <description>Hello awk experts,&lt;BR /&gt;&lt;BR /&gt;Anybody know of an easy way to count the number of days between two dates like 7/1/2002 and 6/1/2001?  I searched the forums and A. Clay's caljd.sh but it wants separate variables for month, day, and year. I was hoping someone already had an awk program to split the dates apart. Awk is not one of my strongpoints.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance, &lt;BR /&gt;Neil</description>
      <pubDate>Mon, 01 Jul 2002 20:58:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755853#M835521</guid>
      <dc:creator>Neil Edwards</dc:creator>
      <dc:date>2002-07-01T20:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Days between, awk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755854#M835522</link>
      <description>Check out A. Clay's newest version of caljd.sh (and caljd.pl) at this thread.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1fb33a7b3682d611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1fb33a7b3682d611abdb0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This one allows you to specify a date as one string.  Hopefully this'll help you.</description>
      <pubDate>Mon, 01 Jul 2002 21:02:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755854#M835522</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-07-01T21:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Days between, awk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755855#M835523</link>
      <description>Hi Neil:&lt;BR /&gt;&lt;BR /&gt;Patrick pointed you to the latest version, 2.1, which will do this internally. If you had asked this a couple of weeks ago the answer would have been a simple awk script but due to a 'customer' request; your all set. Unfortunately your usage to not make my examples list. I might add it later after I see a few more typical date questions.&lt;BR /&gt;&lt;BR /&gt;This should fix you, if and only if, you use caljd.sh (or caljd.pl) version 2.1.&lt;BR /&gt;---------------------------------------&lt;BR /&gt;&lt;BR /&gt;D1="7/1/2002"&lt;BR /&gt;D2="6/1/2001"&lt;BR /&gt;DIFF=$(( $(caljd.sh -S "/" -c ${D1} - $(caljd.sh -S "/" -c ${D2}) ))&lt;BR /&gt;echo "Days = ${DIFF}"&lt;BR /&gt;&lt;BR /&gt;If I counted those pesky paren's correctly, that shoulf fix you.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Jul 2002 21:09:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755855#M835523</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-01T21:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Days between, awk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755856#M835524</link>
      <description>I think Clay missed a close paren in there.&lt;BR /&gt;&lt;BR /&gt;The line:&lt;BR /&gt;DIFF=$(( $(caljd.sh -S "/" -c ${D1} - $(caljd.sh -S "/" -c ${D2}) ))&lt;BR /&gt;&lt;BR /&gt;Should be (I think):&lt;BR /&gt;DIFF=$(( $(caljd.sh -S "/" -c ${D1}) - $(caljd.sh -S "/" -c ${D2}) ))</description>
      <pubDate>Mon, 01 Jul 2002 21:15:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755856#M835524</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-07-01T21:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Days between, awk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755857#M835525</link>
      <description>Hi again:&lt;BR /&gt;&lt;BR /&gt;I just realized that your question was a bit ambiguous in that 7/1/2002 might be July 1, 2002 or it might be 7 January, 2002 especially if you was one of them folks what lives way over yonder. If that is the case then you need to add the -e (European) option to both caljd.sh calls.&lt;BR /&gt;&lt;BR /&gt;Regards and no more points for this, Clay</description>
      <pubDate>Mon, 01 Jul 2002 21:18:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755857#M835525</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-01T21:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Days between, awk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755858#M835526</link>
      <description>Hi again:&lt;BR /&gt;&lt;BR /&gt;Patrick is indeed correct. My advanced one-finger hunt-and-peck method has failed me once again. That there boy is smarter than I am.&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Jul 2002 21:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755858#M835526</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-01T21:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Days between, awk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755859#M835527</link>
      <description>I don't think I'd go that far Clay, but thanks for the compliment anyway.&lt;BR /&gt;&lt;BR /&gt;(No points for this)</description>
      <pubDate>Mon, 01 Jul 2002 21:25:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755859#M835527</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-07-01T21:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Days between, awk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755860#M835528</link>
      <description>Thanks!!! You guys are great. I had an answer in under 5 minutes!!!&lt;BR /&gt;&lt;BR /&gt;Clay, I had your earlier version but this date "sledgehammer" is great. I especially liked your examples section.&lt;BR /&gt;&lt;BR /&gt;Thanks again to both of you,&lt;BR /&gt;Neil&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Jul 2002 21:26:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-awk/m-p/2755860#M835528</guid>
      <dc:creator>Neil Edwards</dc:creator>
      <dc:date>2002-07-01T21:26:20Z</dc:date>
    </item>
  </channel>
</rss>

