<?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: Extract hours to the nearest  hours from duration ( hour:min) format in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275880#M53538</link>
    <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;How to re format the round into&amp;nbsp; hour only&amp;nbsp; value i.e for 12 hours&amp;nbsp; we want 12 not 12:00:00 to make it numeric value&lt;/P&gt;</description>
    <pubDate>Sun, 28 Jun 2020 22:54:17 GMT</pubDate>
    <dc:creator>sweetycha</dc:creator>
    <dc:date>2020-06-28T22:54:17Z</dc:date>
    <item>
      <title>Extract hours to the nearest  hours from duration ( hour:min) format</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275838#M53527</link>
      <description>&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;how to extract hours from the duration ( hr:min) formant and round the min into the hours&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;15:26 : 15 hours and 26 min&lt;/P&gt;&lt;P&gt;I want : 15&lt;/P&gt;&lt;P&gt;16:38: 16 hours and 38 mins&lt;/P&gt;&lt;P&gt;I want :17 as 38 min is over 30 mins&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:15:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275838#M53527</guid>
      <dc:creator>sweetycha</dc:creator>
      <dc:date>2023-06-10T23:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extract hours to the nearest  hours from duration ( hour:min) format</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275845#M53528</link>
      <description>&lt;P&gt;Here is how I do it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

time=informat("15:22:00","h:m:s");
show(format(round(time/inhours(1))*3600,"h:m:s"));

time=informat("10:49:00","h:m:s");
show(format(round(time/inhours(1))*3600,"h:m:s"));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Jun 2020 19:39:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275845#M53528</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-28T19:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extract hours to the nearest  hours from duration ( hour:min) format</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275856#M53530</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Is there a way to do this without a script? I am not familiar with JMP programming but I run sas programming.&lt;/P&gt;&lt;P&gt;Is not then how to recode this with my actual variable name that is called "hours" and is in duration ( hr:min) formant. I would like to create a col hours1 and extract the hours and do the rounding?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 19:50:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275856#M53530</guid>
      <dc:creator>sweetycha</dc:creator>
      <dc:date>2020-06-28T19:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract hours to the nearest  hours from duration ( hour:min) format</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275868#M53533</link>
      <description>&lt;P&gt;Attached is a data table with a time column and a formula column called Rounded that rounds the hours using the formula&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Round( :Time / In Hours( 1 ) ) * 3600&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rounded.PNG" style="width: 341px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24854i58FB2CEB0B6A3669/image-size/large?v=v2&amp;amp;px=999" role="button" title="rounded.PNG" alt="rounded.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 20:17:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275868#M53533</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-28T20:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract hours to the nearest  hours from duration ( hour:min) format</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275880#M53538</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;How to re format the round into&amp;nbsp; hour only&amp;nbsp; value i.e for 12 hours&amp;nbsp; we want 12 not 12:00:00 to make it numeric value&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 22:54:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275880#M53538</guid>
      <dc:creator>sweetycha</dc:creator>
      <dc:date>2020-06-28T22:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extract hours to the nearest  hours from duration ( hour:min) format</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275900#M53541</link>
      <description>&lt;P&gt;Go to the Column Info for the formula column and select a Format to use.&amp;nbsp; Since there is not a direct format that will just display the Hour component of a time based column, you need to select a "Custom" format.&amp;nbsp; The value you need to specify for the custom format is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Hour( value )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jun 2020 02:11:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275900#M53541</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-29T02:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extract hours to the nearest  hours from duration ( hour:min) format</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275938#M53552</link>
      <description>&lt;P&gt;I took a different approach. I abandoned time and directly obtained hours. Here is the resulting table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table.JPG" style="width: 171px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24860iD08083B66A191450/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.JPG" alt="table.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the formula that I used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="formula.JPG" style="width: 296px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24861i5B590C6E2CD41946/image-size/large?v=v2&amp;amp;px=999" role="button" title="formula.JPG" alt="formula.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attached the modified data table for you.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 12:24:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-hours-to-the-nearest-hours-from-duration-hour-min-format/m-p/275938#M53552</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-06-29T12:24:33Z</dc:date>
    </item>
  </channel>
</rss>

