cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
reynardlam94
Level I

Different Time Formats in the same column

Hi,

 

I have a column containing data of different timings. I would like to know how I can convert all the timings to the same format as they are of different formats.

 

Race Timings
51.98 (this is in seconds:milliseconds)
52.00
52.19
01:55.8 (this is in minutes:seconds:milliseconds)
02:15.3

 

When I try to format all to min:s with input format as min:s, all data with seconds:milliseconds gets removed.

1 ACCEPTED SOLUTION

Accepted Solutions
ron_horne
Super User (Alumni)

Re: Different Time Formats in the same column

Hi @reynardlam94 

I wonder if this solution works for this case:

https://www.youtube.com/watch?v=NzbjVs0o6No

 

please do let us know if it did.

 

View solution in original post

JMP has always supported many commonly used date and time formats, but there are now an infinite number of other possibilities. It's no longer necessary to manipulate data with unsupported formats into something JMP recognizes. Now you can define a custom format with Format Pattern, accessed under
2 REPLIES 2
ron_horne
Super User (Alumni)

Re: Different Time Formats in the same column

Hi @reynardlam94 

I wonder if this solution works for this case:

https://www.youtube.com/watch?v=NzbjVs0o6No

 

please do let us know if it did.

 

JMP has always supported many commonly used date and time formats, but there are now an infinite number of other possibilities. It's no longer necessary to manipulate data with unsupported formats into something JMP recognizes. Now you can define a custom format with Format Pattern, accessed under
txnelson
Super User

Re: Different Time Formats in the same column

I would write a simple For Each Row(), and add in the minutes value when there isn't one

For Each Row(
  If(contains(:Race Timings, ":") == 0,
     :Race Timings = "00:" || :Race Timings
  )
)

Then you will be able to convert the column using the informat method

Jim