<?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 Time format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Time-format/m-p/799591#M314435</link>
    <description>&lt;P&gt;I have some time in character format, like below:&lt;/P&gt;&lt;P&gt;04:25&lt;/P&gt;&lt;P&gt;8:37&lt;/P&gt;&lt;P&gt;11:30&lt;/P&gt;&lt;P&gt;9:14&lt;/P&gt;&lt;P&gt;I would like to show all time in HH:MM format, if only one digit, add a "0" in the beginning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help with this?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 15:48:41 GMT</pubDate>
    <dc:creator>JillChen0131</dc:creator>
    <dc:date>2022-03-02T15:48:41Z</dc:date>
    <item>
      <title>Time format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-format/m-p/799591#M314435</link>
      <description>&lt;P&gt;I have some time in character format, like below:&lt;/P&gt;&lt;P&gt;04:25&lt;/P&gt;&lt;P&gt;8:37&lt;/P&gt;&lt;P&gt;11:30&lt;/P&gt;&lt;P&gt;9:14&lt;/P&gt;&lt;P&gt;I would like to show all time in HH:MM format, if only one digit, add a "0" in the beginning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help with this?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 15:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-format/m-p/799591#M314435</guid>
      <dc:creator>JillChen0131</dc:creator>
      <dc:date>2022-03-02T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Time format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-format/m-p/799596#M314439</link>
      <description>&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;PRE&gt;data example;
   input char $;
   timevar = input(char,time.);
   format timevar tod5.;
datalines;
04:25
8:37
11:30
9:14
;&lt;/PRE&gt;
&lt;P&gt;Create a new variable with the input function (or read it with the TIME. informat when reading the data into SAS) then apply the TOD5. format. The TOD (time of day) format will default to 8 characters including seconds, using the 5 shows HH:MM only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/411887"&gt;@JillChen0131&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have some time in character format, like below:&lt;/P&gt;
&lt;P&gt;04:25&lt;/P&gt;
&lt;P&gt;8:37&lt;/P&gt;
&lt;P&gt;11:30&lt;/P&gt;
&lt;P&gt;9:14&lt;/P&gt;
&lt;P&gt;I would like to show all time in HH:MM format, if only one digit, add a "0" in the beginning.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help with this?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 15:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-format/m-p/799596#M314439</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-02T15:57:51Z</dc:date>
    </item>
  </channel>
</rss>

