Time in Seconds to HH:MM:SS FormatHi,
I have a column of seconds starting from 0 which increments by 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: https://community.jmp.com/t5/Discussions/Date-Time-Format-Problem/td-p/52831 where a few ideas were suggested and I was wondering which approach would be the best to take. It doesn't have to work for the whole column, even being able to convert one time in seconds to the HH:MM:SS format would be useful. I want to do this solely using JSL.
Any help would be appreciated.
Advanced Statistical ModelingAutomation and ScriptingDesign of ExperimentsMass CustomizationQuality and Process EngineeringRe: Time in Seconds to HH:MM:SS FormatThank you.
Re: Time in Seconds to HH:MM:SS FormatYour code is not working because your syntax is incorrect. You can find all of the correct syntax and examples in the Scripting Index
Help==>Scripting Index
In your code, all of the issues are covered in the Data Table==>Column Scripting



Re: Time in Seconds to HH:MM:SS FormatThanks, that worked. But I want to be able to script this change to duration. I clicked on Source>Edit but there seems to be no JSL for the duration change. I used the following code:
column(dt,"Stop Clock (seconds)")<<DATA type=""></DATA>
But it doesn't seem to work.
Re: Time in Seconds to HH:MM:SS FormatLike 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 occurred to me either that you would enter it as character data.
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.
Re: Time in Seconds to HH:MM:SS Format
Re: Time in Seconds to HH:MM:SS Format

Re: Time in Seconds to HH:MM:SS FormatThanks but I can't seem to find format when in the column info dialogue box?
Re: Time in Seconds to HH:MM:SS FormatJust set the column format to one of the Duration formats available. 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