<?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: INTNX Hours and Seconds in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Hours-and-Seconds/m-p/667789#M200054</link>
    <description>&lt;P&gt;You don't really need INTNX to do add or substract time to a datetime variable. You can respect SAS date and time conventions with time literals, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;nextFlightDate = flightDate + '08:00:00't;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2020 17:22:12 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2020-07-08T17:22:12Z</dc:date>
    <item>
      <title>INTNX Hours and Seconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Hours-and-Seconds/m-p/667740#M200035</link>
      <description>&lt;P&gt;I always get lost with INTNX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date time variable called flightdate...example: 01JAN2014:00:28:00.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add 8 hours to this.&amp;nbsp; So I use&amp;nbsp;intnx('hour', t1.flightdate,8) and I get&amp;nbsp;01JAN2014:08:00:00.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the minutes to come over as well and be&amp;nbsp;01JAN2014:08:28:00.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any way to get this to happen?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 15:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Hours-and-Seconds/m-p/667740#M200035</guid>
      <dc:creator>BCNAV</dc:creator>
      <dc:date>2020-07-08T15:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX Hours and Seconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Hours-and-Seconds/m-p/667747#M200041</link>
      <description>&lt;P&gt;Make sure to specify the fourth parameter, the alignment or the default applies which is not what you want here. Instead try the 'S' option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; intnx('hour', t1.flightdate,8, 's')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142314"&gt;@BCNAV&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I always get lost with INTNX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a date time variable called flightdate...example: 01JAN2014:00:28:00.000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to add 8 hours to this.&amp;nbsp; So I use&amp;nbsp;intnx('hour', t1.flightdate,8) and I get&amp;nbsp;01JAN2014:08:00:00.000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like the minutes to come over as well and be&amp;nbsp;01JAN2014:08:28:00.000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any way to get this to happen?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 15:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Hours-and-Seconds/m-p/667747#M200041</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-07-08T15:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX Hours and Seconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Hours-and-Seconds/m-p/667789#M200054</link>
      <description>&lt;P&gt;You don't really need INTNX to do add or substract time to a datetime variable. You can respect SAS date and time conventions with time literals, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;nextFlightDate = flightDate + '08:00:00't;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 17:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Hours-and-Seconds/m-p/667789#M200054</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-07-08T17:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX Hours and Seconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Hours-and-Seconds/m-p/667811#M200061</link>
      <description>&lt;P&gt;You can also do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;intnx('seconds', t1.flightdate,28800)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tough command to remember everything....thanks all!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 18:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Hours-and-Seconds/m-p/667811#M200061</guid>
      <dc:creator>BCNAV</dc:creator>
      <dc:date>2020-07-08T18:21:28Z</dc:date>
    </item>
  </channel>
</rss>

