<?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: Is this a leap year? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916208#M933955</link>
    <description>Hi Bob:&lt;BR /&gt;&lt;BR /&gt;Well, we could go through the year % 4, not century year unless divisdible by 400 but why bother?&lt;BR /&gt;&lt;BR /&gt;if [[ $(caljd.sh -n 1 -M) != $(caljd.sh -M) ]] &lt;BR /&gt;  then&lt;BR /&gt;    echo "This is a leap year"&lt;BR /&gt;  else&lt;BR /&gt;    echo "This ain't no leap year"&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;This does assume that you run it only on 02/28.&lt;BR /&gt;</description>
    <pubDate>Fri, 28 Feb 2003 22:19:00 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2003-02-28T22:19:00Z</dc:date>
    <item>
      <title>Is this a leap year?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916207#M933954</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;My boss just asked me late on a Friday afternoon if I could come up with an easy way to know if tomorrow will be Feb. 29 or March 1. I plan to run a cron script on 02 28 at 8PM each year.&lt;BR /&gt;&lt;BR /&gt;Any quick ideas so that I can leave? &lt;BR /&gt;&lt;BR /&gt;Please help, Bob&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Feb 2003 22:15:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916207#M933954</guid>
      <dc:creator>Robert Fisher_1</dc:creator>
      <dc:date>2003-02-28T22:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a leap year?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916208#M933955</link>
      <description>Hi Bob:&lt;BR /&gt;&lt;BR /&gt;Well, we could go through the year % 4, not century year unless divisdible by 400 but why bother?&lt;BR /&gt;&lt;BR /&gt;if [[ $(caljd.sh -n 1 -M) != $(caljd.sh -M) ]] &lt;BR /&gt;  then&lt;BR /&gt;    echo "This is a leap year"&lt;BR /&gt;  else&lt;BR /&gt;    echo "This ain't no leap year"&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;This does assume that you run it only on 02/28.&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Feb 2003 22:19:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916208#M933955</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-02-28T22:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a leap year?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916209#M933956</link>
      <description>Hi Robert,&lt;BR /&gt;&lt;BR /&gt;Search the forum for caljd.sh or caljd.pl&lt;BR /&gt;These are Clay's date hammers &amp;amp; they will do anything with dates that you could ever desire.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Fri, 28 Feb 2003 22:19:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916209#M933956</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-02-28T22:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a leap year?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916210#M933957</link>
      <description>As I remember,&lt;BR /&gt;&lt;BR /&gt;The rule of thumb has always been if the year is divisible by 4 then it is a leap year.&lt;BR /&gt;&lt;BR /&gt;Unless it is divisible by 100, then it is not.&lt;BR /&gt;&lt;BR /&gt;Unless it is divisible by 400, then it is.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 28 Feb 2003 22:20:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916210#M933957</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2003-02-28T22:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a leap year?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916211#M933958</link>
      <description>Wow that was fast!!! &lt;BR /&gt;&lt;BR /&gt;Clay, the -M tells the "date hammer"  to output the month. Is this correct? All you are doing is seeing if tomorrow is a different month? Now why couldn't I figure that out?&lt;BR /&gt;&lt;BR /&gt;Thanks and it looks like I will be outa here soon!!!&lt;BR /&gt;&lt;BR /&gt;This place rocks.&lt;BR /&gt;&lt;BR /&gt;Thanks again, &lt;BR /&gt;Bob</description>
      <pubDate>Fri, 28 Feb 2003 22:24:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916211#M933958</guid>
      <dc:creator>Robert Fisher_1</dc:creator>
      <dc:date>2003-02-28T22:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a leap year?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916212#M933959</link>
      <description>Hi Bob:&lt;BR /&gt;&lt;BR /&gt;Yes, that's all that I'm doing. Now as to why you couldn't figure that out - well, I could come up with a few possible answers but you probably wouldn't like them.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Feb 2003 22:27:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916212#M933959</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-02-28T22:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a leap year?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916213#M933960</link>
      <description>IF &lt;REASON&gt; = &lt;ALCHOHOLIC beverages=""&gt;&lt;BR /&gt;THEN &lt;OK&gt;&lt;BR /&gt;ELSE&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;8^)  --bmr&lt;/OK&gt;&lt;/ALCHOHOLIC&gt;&lt;/REASON&gt;</description>
      <pubDate>Sat, 01 Mar 2003 00:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916213#M933960</guid>
      <dc:creator>Brian M Rawlings</dc:creator>
      <dc:date>2003-03-01T00:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a leap year?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916214#M933961</link>
      <description>For fun...&lt;BR /&gt;&lt;BR /&gt;p=$(cal 2 2003 | tail -2)&lt;BR /&gt;set -u $p &lt;BR /&gt;eval j=\$$#&lt;BR /&gt;&lt;BR /&gt;if [ $j == "28]; then&lt;BR /&gt;echo 2003 is not leap&lt;BR /&gt;else&lt;BR /&gt;echo leap year&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 01 Mar 2003 00:22:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-this-a-leap-year/m-p/2916214#M933961</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2003-03-01T00:22:48Z</dc:date>
    </item>
  </channel>
</rss>

