<?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: Time conversion in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Time-conversion/m-p/496568#M72425</link>
    <description>&lt;P&gt;Means will not try to use formats in that simple display.&amp;nbsp; If you want to attach a format then write your statistics to a dataset and print that.&lt;/P&gt;
&lt;P&gt;Then you can attach formats to the values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x ;
  input y time5. ;
  format y time5. ;
cards;
10:30
11:30
;
proc summary ;
 var y;
 output out=want mean=mean_y min=min_y max=max_y ;
run;
proc print data=want;
  var m:;
  format m: hhmm. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 18 Sep 2018 14:18:17 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-09-18T14:18:17Z</dc:date>
    <item>
      <title>Time conversion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Time-conversion/m-p/496483#M72422</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my data file I have a variable containing time consumption (hours:minutes; not a time of day). It is saved&amp;nbsp;in the&amp;nbsp;"time"-format. Using the Summary Statistics Wizard in SAS Enterprise Guide I end up with integers and not the original format of time.&lt;/P&gt;&lt;P&gt;How can I change this so I end up with a summary statistics of time?&lt;/P&gt;&lt;P&gt;See attached file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Asger&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 07:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Time-conversion/m-p/496483#M72422</guid>
      <dc:creator>Asger</dc:creator>
      <dc:date>2018-09-18T07:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Time-conversion/m-p/496522#M72423</link>
      <description>&lt;P&gt;The time-format in sas is always the number of seconds since midnight. Please post your data using a data-step with datalines statement, office-files aren't helpful to show data.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 11:44:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Time-conversion/m-p/496522#M72423</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-09-18T11:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Time-conversion/m-p/496548#M72424</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;Thank you for the response. My input is hours and minutes between to dates and times; it is not a time of day. So I don´t think the number of seconds since midnight can be used here.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;This is the autogenerated code from Enterprise Guide:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;MEANS&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=WORK.SORTTempTableSorted&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;FW&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;PRINTALLTYPES&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CHARTYPE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;QMETHOD&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=OS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;MIN&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;MAX&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;N&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Q1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;MEDIAN&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Q3&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;VAR&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"Tid diff1"n&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;Was that what you were looking for Andreas?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 13:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Time-conversion/m-p/496548#M72424</guid>
      <dc:creator>Asger</dc:creator>
      <dc:date>2018-09-18T13:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Time conversion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Time-conversion/m-p/496568#M72425</link>
      <description>&lt;P&gt;Means will not try to use formats in that simple display.&amp;nbsp; If you want to attach a format then write your statistics to a dataset and print that.&lt;/P&gt;
&lt;P&gt;Then you can attach formats to the values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x ;
  input y time5. ;
  format y time5. ;
cards;
10:30
11:30
;
proc summary ;
 var y;
 output out=want mean=mean_y min=min_y max=max_y ;
run;
proc print data=want;
  var m:;
  format m: hhmm. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Sep 2018 14:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Time-conversion/m-p/496568#M72425</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-18T14:18:17Z</dc:date>
    </item>
  </channel>
</rss>

