<?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 Change format to duration with script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-format-to-duration-with-script/m-p/274752#M53295</link>
    <description>&lt;P&gt;I am importing data from an excel spreadsheet. I have one column that exists in this excel as a duration (format=min:s). This is imported automatically as character. I would like to change it to a duration within a script. As suggested in lots of posts (eg here:&amp;nbsp;&lt;LI-MESSAGE title="Changing of column formats not working as I expect &amp;amp;lt;&amp;amp;lt;Format(Duration, :hr:m:s)" uid="217000" url="https://community.jmp.com/t5/Discussions/Changing-of-column-formats-not-working-as-I-expect-lt-lt-Format/m-p/217000#U217000" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;column(dt,"Cycle Time")&amp;lt;&amp;lt;data type(Numeric)&amp;lt;&amp;lt;Modeling Type(Continuous)&amp;lt;&amp;lt;Format( "min:s",12,0);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but this gives me a column of only missing values. (dt is my imported data table, "Cycle Time" is the name of the column). The conversion works when I do it manually, using the Column Info dialog.&lt;/P&gt;
&lt;P&gt;I am using Jmp15.1.0 on Windows. Any help would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:14:59 GMT</pubDate>
    <dc:creator>nm1</dc:creator>
    <dc:date>2023-06-10T23:14:59Z</dc:date>
    <item>
      <title>Change format to duration with script</title>
      <link>https://community.jmp.com/t5/Discussions/Change-format-to-duration-with-script/m-p/274752#M53295</link>
      <description>&lt;P&gt;I am importing data from an excel spreadsheet. I have one column that exists in this excel as a duration (format=min:s). This is imported automatically as character. I would like to change it to a duration within a script. As suggested in lots of posts (eg here:&amp;nbsp;&lt;LI-MESSAGE title="Changing of column formats not working as I expect &amp;amp;lt;&amp;amp;lt;Format(Duration, :hr:m:s)" uid="217000" url="https://community.jmp.com/t5/Discussions/Changing-of-column-formats-not-working-as-I-expect-lt-lt-Format/m-p/217000#U217000" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;column(dt,"Cycle Time")&amp;lt;&amp;lt;data type(Numeric)&amp;lt;&amp;lt;Modeling Type(Continuous)&amp;lt;&amp;lt;Format( "min:s",12,0);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but this gives me a column of only missing values. (dt is my imported data table, "Cycle Time" is the name of the column). The conversion works when I do it manually, using the Column Info dialog.&lt;/P&gt;
&lt;P&gt;I am using Jmp15.1.0 on Windows. Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:14:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-format-to-duration-with-script/m-p/274752#M53295</guid>
      <dc:creator>nm1</dc:creator>
      <dc:date>2023-06-10T23:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change format to duration with script</title>
      <link>https://community.jmp.com/t5/Discussions/Change-format-to-duration-with-script/m-p/274762#M53297</link>
      <description>&lt;P&gt;There is an optional form of the &amp;lt;&amp;lt; Data Type message that combines all three steps:&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="Capture.JPG" style="width: 418px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24751iD3E6A7978E601E1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your code might change to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Column( dt, "Cycle Time" ) &amp;lt;&amp;lt; Data Type( "Numeric", Format( "min:s" ) ) &amp;lt;&amp;lt; Modeling Type( "Continuous" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See if that form works better.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 16:09:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-format-to-duration-with-script/m-p/274762#M53297</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-06-22T16:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change format to duration with script</title>
      <link>https://community.jmp.com/t5/Discussions/Change-format-to-duration-with-script/m-p/274780#M53300</link>
      <description>&lt;P&gt;Yep, that did the trick - thanks for the quick response!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 17:38:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-format-to-duration-with-script/m-p/274780#M53300</guid>
      <dc:creator>nm1</dc:creator>
      <dc:date>2020-06-22T17:38:21Z</dc:date>
    </item>
  </channel>
</rss>

