<?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 Next workday in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522212#M845072</link>
    <description>Hi experts:&lt;BR /&gt;&lt;BR /&gt;Does anyone have a way to get the next workday? If it's Monday through Thursday, I need the next day but if it's Friday, I need the next Monday?&lt;BR /&gt;Is there an easy solution?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;John</description>
    <pubDate>Mon, 11 Apr 2005 11:01:37 GMT</pubDate>
    <dc:creator>John Wolfe_1</dc:creator>
    <dc:date>2005-04-11T11:01:37Z</dc:date>
    <item>
      <title>Next workday</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522212#M845072</link>
      <description>Hi experts:&lt;BR /&gt;&lt;BR /&gt;Does anyone have a way to get the next workday? If it's Monday through Thursday, I need the next day but if it's Friday, I need the next Monday?&lt;BR /&gt;Is there an easy solution?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;John</description>
      <pubDate>Mon, 11 Apr 2005 11:01:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522212#M845072</guid>
      <dc:creator>John Wolfe_1</dc:creator>
      <dc:date>2005-04-11T11:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Next workday</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522213#M845073</link>
      <description>Does a hog like slop?&lt;BR /&gt;&lt;BR /&gt;NW_DAY=$(caljd.sh -S "/" $(caljd.sh -n 1 -x 6 -x 0))&lt;BR /&gt;echo "Next workday = ${NW_DAY}"&lt;BR /&gt;&lt;BR /&gt;Invoke as caljd.sh -u for full usage.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Apr 2005 11:04:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522213#M845073</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-04-11T11:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Next workday</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522214#M845074</link>
      <description>Go to Merijn's page ( &lt;A href="http://mirrors.develooper.com/hpux/" target="_blank"&gt;http://mirrors.develooper.com/hpux/&lt;/A&gt; ), scan down until you find Clay's caljd.sh script.  Download and install it and review the usage notes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 11 Apr 2005 11:04:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522214#M845074</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-04-11T11:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Next workday</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522215#M845075</link>
      <description>I should also add that you can skip holidays defined in the /etc/acct/holidays file by adding the "-h" flag. &lt;BR /&gt;&lt;BR /&gt;NW_DAY=$(caljd.sh -S "/" $(caljd.sh -n 1 -x 6 -x 0 -h))&lt;BR /&gt;echo "Next workday = ${NW_DAY}"&lt;BR /&gt;&lt;BR /&gt;This is pretty hard to beat.</description>
      <pubDate>Mon, 11 Apr 2005 11:06:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522215#M845075</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-04-11T11:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Next workday</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522216#M845076</link>
      <description>perl -e 'print scalar localtime(time+24*60*60)'&lt;BR /&gt;&lt;BR /&gt;Now you can put some if statements to get next day.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Mon, 11 Apr 2005 11:13:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522216#M845076</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-04-11T11:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Next workday</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522217#M845077</link>
      <description>Thanks all. A. Clay's solution worked great.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Mon, 11 Apr 2005 11:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522217#M845077</guid>
      <dc:creator>John Wolfe_1</dc:creator>
      <dc:date>2005-04-11T11:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Next workday</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522218#M845078</link>
      <description>&lt;BR /&gt;perl -e '$days=(1,1,1,1,1,3,2)[(localtime)[6]]; print scalar localtime(time+$days*86400),"\n"'&lt;BR /&gt;&lt;BR /&gt;(localtime)[6] = weekday number (0..6) for now.&lt;BR /&gt;(1,1,1,1,1,3,2)[x] = Use as index into array with number of days to add.&lt;BR /&gt;multiply those days with 24*60*60=86400 seconds in a day.&lt;BR /&gt;Add to current time, format and print with newline.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Apr 2005 11:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/next-workday/m-p/3522218#M845078</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-04-11T11:40:34Z</dc:date>
    </item>
  </channel>
</rss>

