cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • Use JMP Clinical with CDISC-compliant data. Review studies, ID safety and efficacy signals & communicate findings with interactive graphics. Register to see how. Aug. 27, 2 pm US ET.

Discussions

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

How do convert the current time to a timestamp in milliseconds using JSL?

Hello!

 

for example

Timestamp in milliseconds: 1679728373067

 

2 REPLIES 2
lala
Level IX

回复: How do convert the current time to a timestamp in milliseconds using JSL?

??

  • How can I get the exact number of milliseconds of the current time?Thanks!

nn=(Today()+Minute(Today())+hour(Today())+second(Today())-Informat("01/01/1970","mm/dd/yyyy")-In Hours(8))*1000;

 

txnelson
Super User

回复: How do convert the current time to a timestamp in milliseconds using JSL?

nn = (Today() - Informat( "01/01/1970", "m/d/y" ) - In Hours( 8 )) * 1000;

This will give you the number of milliseconds from the current date/time, to the current second.  I am not aware of how to get Today() to the millisecond.  There are the functions of HPTime() and Tick Seconds() that can measure at sub second times, however, their base start point, is JMP session start time and I don't see how one would be able to work them together.

 

Jim

Recommended Articles