<?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: Combine HH and MM and am/pm into HH:MM time variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/505780#M135485</link>
    <description>&lt;P&gt;You can use the HHMM. format&lt;/P&gt;</description>
    <pubDate>Thu, 18 Oct 2018 21:46:07 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-10-18T21:46:07Z</dc:date>
    <item>
      <title>Combine HH and MM and am/pm into HH:MM time variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/505676#M135450</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have hours, minutes and am/pm as three seperate columns. I need to concatenate these to form one HH:MM variable, preferable 24 hour clock, so that I can gt and lt functions with the time. Any advice?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 18:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/505676#M135450</guid>
      <dc:creator>sanketshah07</dc:creator>
      <dc:date>2018-10-18T18:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Combine HH and MM and am/pm into HH:MM time variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/505678#M135452</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if upcase(ampm) = 'AM' then time=hms(hours,minutes,0);
else if upcase(ampm) = 'PM' then time=hms(hours+12,minutes,0);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Oct 2018 18:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/505678#M135452</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-10-18T18:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Combine HH and MM and am/pm into HH:MM time variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/505700#M135459</link>
      <description>&lt;P&gt;What do I use to format the time back to HH:MM?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 18:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/505700#M135459</guid>
      <dc:creator>sanketshah07</dc:creator>
      <dc:date>2018-10-18T18:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Combine HH and MM and am/pm into HH:MM time variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/505780#M135485</link>
      <description>&lt;P&gt;You can use the HHMM. format&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 21:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/505780#M135485</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-10-18T21:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Combine HH and MM and am/pm into HH:MM time variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/505950#M135555</link>
      <description>&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table want as&lt;BR /&gt;select hh,mm,ampm , case when ampm='am' then hms(hh,mm,0) else hms(hh+12,mm,0) end as time format=hhmm. from have;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/505950#M135555</guid>
      <dc:creator>singhsahab</dc:creator>
      <dc:date>2018-10-19T14:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Combine HH and MM and am/pm into HH:MM time variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/507016#M135993</link>
      <description>Thanks so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 23 Oct 2018 21:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-HH-and-MM-and-am-pm-into-HH-MM-time-variable/m-p/507016#M135993</guid>
      <dc:creator>sanketshah07</dc:creator>
      <dc:date>2018-10-23T21:08:28Z</dc:date>
    </item>
  </channel>
</rss>

