<?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 How to get date 2 days ago in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-date-2-days-ago/m-p/5051085#M64235</link>
    <description>Greetings,&lt;BR /&gt;&lt;BR /&gt;I'm primarily Tru64 UNIX but I'm slowly moving into the Linux world.  I'm porting a ksh script of mine to Linux which gets the date 2 days ago.  On Tru64 UNIX this command works:&lt;BR /&gt;&lt;BR /&gt;# (export TZ; TZ=UTC+48; date '+%Y%m%d')&lt;BR /&gt;20070603&lt;BR /&gt;&lt;BR /&gt;On RedHat Linux it returns yesterday's date:&lt;BR /&gt;# (export TZ; TZ=UTC+48; date '+%Y%m%d')&lt;BR /&gt;20070604&lt;BR /&gt;&lt;BR /&gt;So, what am I doing wrong here.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vic&lt;BR /&gt;</description>
    <pubDate>Tue, 05 Jun 2007 09:03:42 GMT</pubDate>
    <dc:creator>Victor Semaska_3</dc:creator>
    <dc:date>2007-06-05T09:03:42Z</dc:date>
    <item>
      <title>How to get date 2 days ago</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-date-2-days-ago/m-p/5051085#M64235</link>
      <description>Greetings,&lt;BR /&gt;&lt;BR /&gt;I'm primarily Tru64 UNIX but I'm slowly moving into the Linux world.  I'm porting a ksh script of mine to Linux which gets the date 2 days ago.  On Tru64 UNIX this command works:&lt;BR /&gt;&lt;BR /&gt;# (export TZ; TZ=UTC+48; date '+%Y%m%d')&lt;BR /&gt;20070603&lt;BR /&gt;&lt;BR /&gt;On RedHat Linux it returns yesterday's date:&lt;BR /&gt;# (export TZ; TZ=UTC+48; date '+%Y%m%d')&lt;BR /&gt;20070604&lt;BR /&gt;&lt;BR /&gt;So, what am I doing wrong here.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vic&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2007 09:03:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-date-2-days-ago/m-p/5051085#M64235</guid>
      <dc:creator>Victor Semaska_3</dc:creator>
      <dc:date>2007-06-05T09:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date 2 days ago</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-date-2-days-ago/m-p/5051086#M64236</link>
      <description>In linux, you can use:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;date --date "2 days ago"&lt;BR /&gt;&lt;BR /&gt;Cool isn't it?</description>
      <pubDate>Tue, 05 Jun 2007 09:25:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-date-2-days-ago/m-p/5051086#M64236</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-06-05T09:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date 2 days ago</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-date-2-days-ago/m-p/5051087#M64237</link>
      <description>Thanks Ivan,&lt;BR /&gt;&lt;BR /&gt;1) Somehow I knew you would have the answer.&lt;BR /&gt;2) I can't believe it's that simple.&lt;BR /&gt;&lt;BR /&gt;Vic&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2007 09:43:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-date-2-days-ago/m-p/5051087#M64237</guid>
      <dc:creator>Victor Semaska_3</dc:creator>
      <dc:date>2007-06-05T09:43:02Z</dc:date>
    </item>
  </channel>
</rss>

