<?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: How to manipulate date inside a shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104359#M905065</link>
    <description>Sorry, we call bi-sixth years here in Brazil. It's a very good script to manipulate date.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot,&lt;BR /&gt;Augusto</description>
    <pubDate>Tue, 28 Oct 2003 12:38:54 GMT</pubDate>
    <dc:creator>Augusto Vinhaes</dc:creator>
    <dc:date>2003-10-28T12:38:54Z</dc:date>
    <item>
      <title>How to manipulate date inside a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104352#M905058</link>
      <description>I'm writing a shell script and I need to deduct date (manipulate date). Any idea will be appreaciated.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Augusto</description>
      <pubDate>Tue, 28 Oct 2003 11:07:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104352#M905058</guid>
      <dc:creator>Augusto Vinhaes</dc:creator>
      <dc:date>2003-10-28T11:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to manipulate date inside a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104353#M905059</link>
      <description>My "one size fits all" for date problems is caljd.sh. Invoke as caljd.sh -u for full usage and examples or if you will give me an idea of what you arte trying to do, I can probably provide the syntax.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2003 11:17:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104353#M905059</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-10-28T11:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to manipulate date inside a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104354#M905060</link>
      <description>Hi Clay!&lt;BR /&gt;&lt;BR /&gt;Thank you for the help. The script you sent me is very powerfull. I've got one more question: Is the script able to treat bi-sixth years ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Augusto</description>
      <pubDate>Tue, 28 Oct 2003 11:55:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104354#M905060</guid>
      <dc:creator>Augusto Vinhaes</dc:creator>
      <dc:date>2003-10-28T11:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to manipulate date inside a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104355#M905061</link>
      <description>I have no idea what a "bi-sixth" year is. I felt bad until I found that Google didn't know either. Can you explain a bit?&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2003 12:01:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104355#M905061</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-10-28T12:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to manipulate date inside a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104356#M905062</link>
      <description>I will try... in a bi-sixth year such as 2000 the February month has 29 days (instead of 28 days).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Augusto</description>
      <pubDate>Tue, 28 Oct 2003 12:12:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104356#M905062</guid>
      <dc:creator>Augusto Vinhaes</dc:creator>
      <dc:date>2003-10-28T12:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to manipulate date inside a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104357#M905063</link>
      <description>Hi Clay !&lt;BR /&gt;&lt;BR /&gt;I've tested your script and it works for bi-sixth years:&lt;BR /&gt;&lt;BR /&gt;$ ./24089.sh -e 01 03 2000&lt;BR /&gt;2451605&lt;BR /&gt;$ ./24089.sh -e -p 1 2451605&lt;BR /&gt;29 02 2000&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 28 Oct 2003 12:23:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104357#M905063</guid>
      <dc:creator>Augusto Vinhaes</dc:creator>
      <dc:date>2003-10-28T12:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to manipulate date inside a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104358#M905064</link>
      <description>We would call that century years (which are normally not leap years) divisible by 400 -- which are leap years --- and, yes, caljd.sh handles that.&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;caljd.sh 2 28 2000&lt;BR /&gt;2451603&lt;BR /&gt;Now let's send in the next Julian day and see what the Gregorian Date is.&lt;BR /&gt;caljd.sh 2451604&lt;BR /&gt;02 29 2000&lt;BR /&gt;Now let's send in two days later:&lt;BR /&gt;caljd.sh 2451605&lt;BR /&gt;03 01 2000&lt;BR /&gt;&lt;BR /&gt;Now for a quick method to determine the day after 2 28 2000.&lt;BR /&gt;DT=$(caljd.sh $(caljd.sh -n 1 2 28 2000))&lt;BR /&gt;echo "${DT}"&lt;BR /&gt;2 29 2000&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2003 12:31:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104358#M905064</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-10-28T12:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to manipulate date inside a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104359#M905065</link>
      <description>Sorry, we call bi-sixth years here in Brazil. It's a very good script to manipulate date.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot,&lt;BR /&gt;Augusto</description>
      <pubDate>Tue, 28 Oct 2003 12:38:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-manipulate-date-inside-a-shell-script/m-p/3104359#M905065</guid>
      <dc:creator>Augusto Vinhaes</dc:creator>
      <dc:date>2003-10-28T12:38:54Z</dc:date>
    </item>
  </channel>
</rss>

