cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
JMPdiscoverer
Level III

Convert time AM/PM into duration (in minutes)

Dear JMP users, 

 

I need to create a column for time in minutes, which correspond to the duration considering the first Date as the starting point).

Dates were given in h:m:s AM/PM. 

Do you know which formula I need to use ? 

 

Thanks 

 

Time Duration for Temperature.JPG

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Convert time AM/PM into duration (in minutes)

time.PNG

The formula is pretty straight forward

:Time - :Time[1]

I have attached an example data table

Jim

View solution in original post

5 REPLIES 5
txnelson
Super User

Re: Convert time AM/PM into duration (in minutes)

time.PNG

The formula is pretty straight forward

:Time - :Time[1]

I have attached an example data table

Jim
JMPdiscoverer
Level III

Re: Convert time AM/PM into duration (in minutes)

It works ! Thanks a lot
ThuongLe
Level IV

Re: Convert time AM/PM into duration (in minutes)

Or you can use MINUTE() keyword to achieve the same result

111.PNG

Thuong Le
JMPdiscoverer
Level III

Re: Convert time AM/PM into duration (in minutes)

@ ThuongLe , Thanks for your answer, however the Formula "minutes" gives you minutes for each corresponding date without converting number of hours into minutes, and also its does not calculate the duration of time.
ThuongLe
Level IV

Re: Convert time AM/PM into duration (in minutes)

Sorry, I misread your request
Thuong Le