<?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 add &amp;quot;time&amp;quot; to an existing DateTime value ?? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-quot-time-quot-to-an-existing-DateTime-value/m-p/65626#M18715</link>
    <description>hi, &lt;BR /&gt;
&lt;BR /&gt;
Just a quick Q, and I can't seem to find examples anywhere of someone doing this but.. the dataset I have has two colums&lt;BR /&gt;
&lt;BR /&gt;
date_time_start (yyyymmdd hhmmss) and duration (hh:mm:ss)&lt;BR /&gt;
&lt;BR /&gt;
We have a need to create a new column called date_time_end in yyyymmdd hhmmss that would ultimatly be date_time_start + duration&lt;BR /&gt;
&lt;BR /&gt;
how would one go about doing this in a data step?</description>
    <pubDate>Thu, 19 Aug 2010 18:08:10 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-08-19T18:08:10Z</dc:date>
    <item>
      <title>How to add "time" to an existing DateTime value ??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-quot-time-quot-to-an-existing-DateTime-value/m-p/65626#M18715</link>
      <description>hi, &lt;BR /&gt;
&lt;BR /&gt;
Just a quick Q, and I can't seem to find examples anywhere of someone doing this but.. the dataset I have has two colums&lt;BR /&gt;
&lt;BR /&gt;
date_time_start (yyyymmdd hhmmss) and duration (hh:mm:ss)&lt;BR /&gt;
&lt;BR /&gt;
We have a need to create a new column called date_time_end in yyyymmdd hhmmss that would ultimatly be date_time_start + duration&lt;BR /&gt;
&lt;BR /&gt;
how would one go about doing this in a data step?</description>
      <pubDate>Thu, 19 Aug 2010 18:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-quot-time-quot-to-an-existing-DateTime-value/m-p/65626#M18715</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-19T18:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to add "time" to an existing DateTime value ??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-quot-time-quot-to-an-existing-DateTime-value/m-p/65627#M18716</link>
      <description>You simply add the two variables together, or you could use the DHMS function and code placeholder "0" values for the "h" and "m" arguments.  You are working with a duration that is seconds and your datetime variable is also "seconds...since 1/1/1960".  So these two variables are compatible.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search arguments, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
using sas date variables site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
dhms function site:sas.com</description>
      <pubDate>Thu, 19 Aug 2010 18:22:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-quot-time-quot-to-an-existing-DateTime-value/m-p/65627#M18716</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-08-19T18:22:40Z</dc:date>
    </item>
  </channel>
</rss>

