<?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: Date Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722698#M948397</link>
    <description>Use Clay's script:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd66c50011d20d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd66c50011d20d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Mon, 13 May 2002 17:44:17 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-05-13T17:44:17Z</dc:date>
    <item>
      <title>Date Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722697#M948396</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I got so many quick responses to my last question that I think I will try again. This ought to be easy be it has me completely stumped. Is there a way to determine the number of days since some date in the past. For example, how many days since today and Dec. 1, 1960?&lt;BR /&gt;&lt;BR /&gt;TIA, Ryan</description>
      <pubDate>Mon, 13 May 2002 17:39:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722697#M948396</guid>
      <dc:creator>Ryan Clerk</dc:creator>
      <dc:date>2002-05-13T17:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722698#M948397</link>
      <description>Use Clay's script:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd66c50011d20d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd66c50011d20d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 13 May 2002 17:44:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722698#M948397</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-05-13T17:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722699#M948398</link>
      <description>Actually, this is far from a trivial question but there is a fairly easy solution. Try this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;PREV_DT="12 1 1960"&lt;BR /&gt;DIFF=$(($(caljd.pl) - $(caljd.pl ${PREV_DT)))&lt;BR /&gt;echo "Diff = ${DIFF}"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Caljd.pl converts a calendar date into a Julian Day and vice versa. With no arguments, it converts today's date to a Julian Day. Caljd.pl -u gives full usage.&lt;BR /&gt;&lt;BR /&gt;I've attached the caljd.pl script but you can also use the shell/awk based 'caljd.sh' script. The arguments are exactly the same. Search the Forums for 'caljd.sh' and you should find a copy. Version 2.05 is the latest.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Mon, 13 May 2002 17:54:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722699#M948398</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-05-13T17:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722700#M948399</link>
      <description>Thanks guys. That worked. I used the caljd.sh version because I don't know Perl.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 May 2002 18:41:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722700#M948399</guid>
      <dc:creator>Ryan Clerk</dc:creator>
      <dc:date>2002-05-13T18:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722701#M948400</link>
      <description>Hello again,&lt;BR /&gt;&lt;BR /&gt;I'm a little confused. I have been looking at this caljd.sh and I noticed that something appears to be very wrong. There is a function called  "JDATE_CAL" that has 11 parameters but is is only called with 3 parameters. I have downloaded the file 3 times but each time the same parameters are missing. The funny thing is that the script seems to work fine. Is this ok?&lt;BR /&gt;&lt;BR /&gt;Please respond, Ryan.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 May 2002 21:06:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722701#M948400</guid>
      <dc:creator>Ryan Clerk</dc:creator>
      <dc:date>2002-05-13T21:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722702#M948401</link>
      <description>Not to worry, Ryan. Your version is fine. That's the standard method of declaring local variables for a function in awk. Any formal paramters in excess of the actual paramters become local variables for that function. By convention, those parameters are set apart by extra whitespace to make it more obvious. If you examine the Perl version, cajld.pl, you will note that those parameter lists match because Perl supports the concept of explicitly declared local variables.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Mon, 13 May 2002 21:13:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-question/m-p/2722702#M948401</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-05-13T21:13:12Z</dc:date>
    </item>
  </channel>
</rss>

