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
jhcao
Level I

how do I calculate duration of time between days?

Hi All,

I am new to JMP.  How do I calculate the difference between time? For example, when I use JMP to calculate the duration of time for 1Jan2021 11:45PM and 2Jan2021 12:30AM, I get a negative number instead of 45 minutes.  

 

Thanks

1 REPLY 1
jthi
Super User

Re: how do I calculate duration of time between days?

Check out Date Difference function from scripting index

 

Names Default To Here(1);
Date Difference(
	Date DMY(31, 1, 2015),
	Date DMY(1, 3, 2015),
	"Month",
	"start"
);
-Jarmo

Recommended Articles