<?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 in Seconds to HH:MM:SS Format in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61820#M33323</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column of seconds starting from 0 which increments&amp;nbsp;by&amp;nbsp;1 second for each row. (0, 1, 2, 3, etc...). I was looking for a way to convert these times in seconds into a HH:MM:SS format. I came across this post: &lt;A href="https://community.jmp.com/t5/Discussions/Date-Time-Format-Problem/td-p/52831&amp;nbsp;where" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Date-Time-Format-Problem/td-p/52831&amp;nbsp;where&lt;/A&gt; a few ideas were suggested and I was wondering which approach would be the best to take.&amp;nbsp;It doesn't have to work for the whole column, even being able to convert one&amp;nbsp;time in seconds to the HH:MM:SS format would be&amp;nbsp;useful.&amp;nbsp;I want to do this solely using JSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 23:25:11 GMT</pubDate>
    <dc:creator>Jaz</dc:creator>
    <dc:date>2023-06-09T23:25:11Z</dc:date>
    <item>
      <title>Time in Seconds to HH:MM:SS Format</title>
      <link>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61820#M33323</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column of seconds starting from 0 which increments&amp;nbsp;by&amp;nbsp;1 second for each row. (0, 1, 2, 3, etc...). I was looking for a way to convert these times in seconds into a HH:MM:SS format. I came across this post: &lt;A href="https://community.jmp.com/t5/Discussions/Date-Time-Format-Problem/td-p/52831&amp;nbsp;where" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Date-Time-Format-Problem/td-p/52831&amp;nbsp;where&lt;/A&gt; a few ideas were suggested and I was wondering which approach would be the best to take.&amp;nbsp;It doesn't have to work for the whole column, even being able to convert one&amp;nbsp;time in seconds to the HH:MM:SS format would be&amp;nbsp;useful.&amp;nbsp;I want to do this solely using JSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:25:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61820#M33323</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2023-06-09T23:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Time in Seconds to HH:MM:SS Format</title>
      <link>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61821#M33324</link>
      <description>&lt;P&gt;Just set the column format to one of the Duration formats available.&amp;nbsp; Go to Column Info for the column, and click on the down arrow beside the format and select Duration, and then choose which of the potential formats you want to use&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:53:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61821#M33324</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-28T14:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Time in Seconds to HH:MM:SS Format</title>
      <link>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61823#M33326</link>
      <description>&lt;P&gt;Thanks but I can't seem to find format when in the column info dialogue box?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:36:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61823#M33326</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-06-28T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Time in Seconds to HH:MM:SS Format</title>
      <link>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61829#M33328</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="colinfo.PNG" style="width: 394px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11323iD7F1BED2A7E17208/image-dimensions/394x223?v=v2" width="394" height="223" role="button" title="colinfo.PNG" alt="colinfo.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="colinfo2.PNG" style="width: 441px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11324i3AB32DFC55962371/image-dimensions/441x475?v=v2" width="441" height="475" role="button" title="colinfo2.PNG" alt="colinfo2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:49:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61829#M33328</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-28T15:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Time in Seconds to HH:MM:SS Format</title>
      <link>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61871#M33344</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (4).png" style="width: 618px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11328i732CE1F87F44B2CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (4).png" alt="Screenshot (4).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 11:32:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61871#M33344</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-06-29T11:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Time in Seconds to HH:MM:SS Format</title>
      <link>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61874#M33347</link>
      <description>&lt;P&gt;Like Jim, I assumed that when you said that you had data in the form of seconds (time), that you entered it as a numeric value. It never&amp;nbsp;occurred to me either that you would enter it as character data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So following Jim's solution, first change the Data Type to Numeric and the Modeling Type to Continuous. Then continue with his detailed step-by-step instructions.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 12:06:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61874#M33347</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-06-29T12:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Time in Seconds to HH:MM:SS Format</title>
      <link>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61876#M33349</link>
      <description>&lt;P&gt;Thanks, that worked. But I want to be able to script this change to duration. I clicked on Source&amp;gt;Edit but there seems to be no JSL for the duration change. I used the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;column(dt,"Stop Clock (seconds)")&amp;lt;&amp;lt;data type(Numeric)&amp;lt;&amp;lt;Modeling Type(Continuous)&amp;lt;&amp;lt;Format(Duration, hr:m:s); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But it doesn't seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 12:29:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61876#M33349</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-06-29T12:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Time in Seconds to HH:MM:SS Format</title>
      <link>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61881#M33351</link>
      <description>&lt;P&gt;Your code is not working because your syntax is incorrect.&amp;nbsp; You can find all of the correct syntax and examples in the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index&lt;/P&gt;
&lt;P&gt;In your code, all of the issues are covered in the Data Table==&amp;gt;Column Scripting&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaz1.PNG" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11329i6E1036939665A816/image-size/large?v=v2&amp;amp;px=999" role="button" title="jaz1.PNG" alt="jaz1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jaz2.PNG" style="width: 398px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11330iC75040786E983585/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jaz2.PNG" alt="Jaz2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jaz3.PNG" style="width: 402px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11331i288E8222E76F959E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jaz3.PNG" alt="Jaz3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 12:53:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61881#M33351</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-29T12:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Time in Seconds to HH:MM:SS Format</title>
      <link>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61890#M33353</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 14:45:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-in-Seconds-to-HH-MM-SS-Format/m-p/61890#M33353</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-06-29T14:45:23Z</dc:date>
    </item>
  </channel>
</rss>

