<?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: helo command date script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924683#M286541</link>
    <description>Hi,&lt;BR /&gt;get yourself&lt;BR /&gt;&lt;BR /&gt;A. Clay's caljd program from&lt;BR /&gt;&lt;A href="http://mirrors.develooper.com/hpux/" target="_blank"&gt;http://mirrors.develooper.com/hpux/&lt;/A&gt;&lt;BR /&gt;(right at the bottom of the page)&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 11 Jan 2007 09:42:07 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2007-01-11T09:42:07Z</dc:date>
    <item>
      <title>helo command date script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924682#M286540</link>
      <description>hello, I need to obtain the number of the week for a certain date when the date is xx/xx/xxx to obtain I number of week&lt;BR /&gt;&lt;BR /&gt;example : number of the week : &lt;BR /&gt;#date +%W&lt;BR /&gt;&lt;BR /&gt;so , I want to obtain I number of week for the date example 2006/12/08  &lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Thu, 11 Jan 2007 09:32:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924682#M286540</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2007-01-11T09:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: helo command date script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924683#M286541</link>
      <description>Hi,&lt;BR /&gt;get yourself&lt;BR /&gt;&lt;BR /&gt;A. Clay's caljd program from&lt;BR /&gt;&lt;A href="http://mirrors.develooper.com/hpux/" target="_blank"&gt;http://mirrors.develooper.com/hpux/&lt;/A&gt;&lt;BR /&gt;(right at the bottom of the page)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jan 2007 09:42:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924683#M286541</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-01-11T09:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: helo command date script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924684#M286542</link>
      <description>Unless it has been enhanced since the last time I looked at it, I don't believe caljd.sh (or caljd.pl) have any such option.&lt;BR /&gt;&lt;BR /&gt;I was recently trying to figure out the day number of the year for specific dates and couldn't seem to find a way so I'll be interested to see what sort of answers come of this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 11 Jan 2007 09:49:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924684#M286542</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-01-11T09:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: helo command date script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924685#M286543</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Perl makes life easy:&lt;BR /&gt;&lt;BR /&gt;# perl -MDate::Calc=Week_of_Year -le '($w,$y)=Week_of_Year(2006,12,8);print $w'&lt;BR /&gt;&lt;BR /&gt;...returns 49&lt;BR /&gt;&lt;BR /&gt;Pass the year, month and day you want.  In the above, I took 2006/12/08 to mean December 8, 2006.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 11 Jan 2007 09:54:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924685#M286543</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-01-11T09:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: helo command date script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924686#M286544</link>
      <description>Jairo,&lt;BR /&gt;&lt;BR /&gt;Please clarify how you define 'weeknumber'.&lt;BR /&gt;&lt;BR /&gt;Is it simple the a chunk of 7 days?&lt;BR /&gt;&lt;BR /&gt;An ISO week?&lt;BR /&gt;- weeks start on a monday &lt;BR /&gt;- week 1 of a given year is the one that includes the first Thursday of that year. (or, equivalently, week 1 is the week that includes 4 January.) &lt;BR /&gt;&lt;BR /&gt;Google for 'week number' and you'll find many write ups. This suggests you probably want to use a package like the perl above rather then code up some shell script and get it wrong for next a leap year or whatever.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;One example:&lt;BR /&gt;&lt;A href="http://www.proesite.com/timex/wkcalc.htm" target="_blank"&gt;http://www.proesite.com/timex/wkcalc.htm&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jan 2007 10:04:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924686#M286544</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-01-11T10:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: helo command date script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924687#M286545</link>
      <description>Hi,&lt;BR /&gt;Pete, you are correct - no direct option to do this. I thought the julian day difference could be used (Too simplistic, it seems)&lt;BR /&gt;&lt;BR /&gt;Jairo,&lt;BR /&gt;&lt;A href="http://www.computing.net/unix/wwwboard/forum/7128.html" target="_blank"&gt;http://www.computing.net/unix/wwwboard/forum/7128.html&lt;/A&gt; has got a ksh script, but apparently some potential problem.&lt;BR /&gt;&lt;BR /&gt;So I'd go with James's perl solution, if perl is ok.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jan 2007 10:11:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924687#M286545</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-01-11T10:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: helo command date script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924688#M286546</link>
      <description>Hi,&lt;BR /&gt;I use the C program mktime on HP-UX to obtain the week number ISO-8601:&lt;BR /&gt;$ mktime -D 2007-12-31 -F %w&lt;BR /&gt;1&lt;BR /&gt;You can get it here:&lt;BR /&gt;&lt;A href="http://fresh.t-systems-sfr.com/unix/src/privat2/mktime-2.3.tar.gz/" target="_blank"&gt;http://fresh.t-systems-sfr.com/unix/src/privat2/mktime-2.3.tar.gz/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Fri, 12 Jan 2007 09:27:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/helo-command-date-script/m-p/3924688#M286546</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-01-12T09:27:45Z</dc:date>
    </item>
  </channel>
</rss>

