cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
corkman1987
Level II

Manipulating Timestamp

Hi I am struggling to convert a Timestamp into numeric format. I basically want to use the timestamp to create an Elapsed Time column. I am having difficultly achieving this with JMP16. Below is an example of the format. The change from 12:59 to 01:00 also seems to cause issues for me.

 

corkman1987_1-1678094435310.png

 

I was able to work with excel and manipulate the data to give me an Elapsed time in minutes (from row 1 as starting point). But I would prefer to use JMP and to create a script for it.

 

Thanks

 

 

 

 

11 REPLIES 11
corkman1987
Level II

Re: Manipulating Timestamp

thank you very much for your help. your script is working well for me even when in UK date/time settings.

txnelson
Super User

Re: Manipulating Timestamp

I am not seeing the error.  See the display below.  I have also attached my data table.  The Time 2 column is the same values as the time column, but with the display format set to display the actual numeric data values behind the date/time.  It is the number of seconds since January 1, 1904.  Time 2 has the formula       :time   but the format is changed to Fixed Dec, 20, 3.

txnelson_0-1678112810688.png

I ran the code under both JMP 16 and 17, with the same results.

 

 

Jim

Recommended Articles