<?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: How to round up time variable to nearest half-hour periods? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-round-up-time-variable-to-nearest-half-hour-periods/m-p/535474#M147048</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
t='5:05:00't;output;
t='5:20:00't;output;
format t time.;
run;

data want;
   set have;
   roundedtime=round(t,'00:30:00't);
   format roundedtime time.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Feb 2019 01:33:58 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-02-14T01:33:58Z</dc:date>
    <item>
      <title>How to round up time variable to nearest half-hour periods?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-round-up-time-variable-to-nearest-half-hour-periods/m-p/535465#M147044</link>
      <description>&lt;P&gt;I have a time variable and I want to round the observations to the nearest 30 min.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so 2:15:00 for example would be 2:30&amp;nbsp;&lt;/P&gt;&lt;P&gt;5:05:00 would be 5:00:00&lt;/P&gt;&lt;P&gt;5:20:00 would be 5:30:00 &amp;nbsp;and so on. I would appreciate any help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using base SAS 9.4&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 00:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-round-up-time-variable-to-nearest-half-hour-periods/m-p/535465#M147044</guid>
      <dc:creator>hussainkw97</dc:creator>
      <dc:date>2019-02-14T00:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to round up time variable to nearest half-hour periods?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-round-up-time-variable-to-nearest-half-hour-periods/m-p/535474#M147048</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
t='5:05:00't;output;
t='5:20:00't;output;
format t time.;
run;

data want;
   set have;
   roundedtime=round(t,'00:30:00't);
   format roundedtime time.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Feb 2019 01:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-round-up-time-variable-to-nearest-half-hour-periods/m-p/535474#M147048</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-02-14T01:33:58Z</dc:date>
    </item>
  </channel>
</rss>

