<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168458#M896940</link>
    <description>Using perl, it would something like this:&lt;BR /&gt;&lt;BR /&gt;perl -e 'use POSIX(strftime);print strftime("%Y/%m/%d",gmtime(time-3600*24))."\n";'&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 20 Jan 2004 07:11:02 GMT</pubDate>
    <dc:creator>Elmar P. Kolkman</dc:creator>
    <dc:date>2004-01-20T07:11:02Z</dc:date>
    <item>
      <title>date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168455#M896937</link>
      <description>hi,&lt;BR /&gt;  can anyone plz let me know how to find the previous day and date.&lt;BR /&gt;&lt;BR /&gt;THANKS FOR ALL REPLIES&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;HARI KRISHNA</description>
      <pubDate>Tue, 20 Jan 2004 06:38:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168455#M896937</guid>
      <dc:creator>harikrishna</dc:creator>
      <dc:date>2004-01-20T06:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168456#M896938</link>
      <description>YESTERDAY=$(sh -c "TZ=$(date +%Z)+24; export TZ; date '+%d/%m/%y'")&lt;BR /&gt;echo $YESTERDAY&lt;BR /&gt;&lt;BR /&gt;shows yesterdays date.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jan 2004 06:45:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168456#M896938</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2004-01-20T06:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168457#M896939</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can see calender with command cal for current month&lt;BR /&gt;&lt;BR /&gt;Sunil</description>
      <pubDate>Tue, 20 Jan 2004 06:53:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168457#M896939</guid>
      <dc:creator>Sunil Sharma_1</dc:creator>
      <dc:date>2004-01-20T06:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168458#M896940</link>
      <description>Using perl, it would something like this:&lt;BR /&gt;&lt;BR /&gt;perl -e 'use POSIX(strftime);print strftime("%Y/%m/%d",gmtime(time-3600*24))."\n";'&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jan 2004 07:11:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168458#M896940</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-01-20T07:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168459#M896941</link>
      <description>perl -e '@TM=localtime(time-86400);printf("%02d/%02d/%02d",$TM[3],$TM[4]+1,($TM[5]+1900)%100);print("\n")'&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs</description>
      <pubDate>Tue, 20 Jan 2004 07:26:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168459#M896941</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2004-01-20T07:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168460#M896942</link>
      <description>Here's a method that will work for any number of days:&lt;BR /&gt;&lt;BR /&gt;DATE=$(caljd.sh -S "/" $(caljd.sh -p 1))&lt;BR /&gt;echo "Date = ${DATE})&lt;BR /&gt;&lt;BR /&gt;By changing the -p (previous) 1 to -n (next) 3, it would yield the date 3 days from now.&lt;BR /&gt;&lt;BR /&gt;Also, suppose that you wanted the previous day BUT you wanted to skip weekends so that the day before Monday was to be Friday:&lt;BR /&gt;&lt;BR /&gt;DATE=$(caljd.sh -S "/" $(caljd.sh -p 1 -x 0 -x 6))&lt;BR /&gt;echo "Date = ${DATE})&lt;BR /&gt;&lt;BR /&gt;The -x 0 skips Sunday and -x 6 skips Saturday.&lt;BR /&gt;&lt;BR /&gt;Invoke as caljd.sh -u for full usage.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jan 2004 10:13:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date/m-p/3168460#M896942</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-01-20T10:13:14Z</dc:date>
    </item>
  </channel>
</rss>

