cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-61054%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERE%3A%20Tipo%20de%20datos%20de%20tiempo%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61054%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHola%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMe%20preguntaba%20si%20hab%C3%ADa%20alguna%20forma%20de%20que%20JSL%20dijera%20cu%C3%A1nto%20tiempo%20ha%20pasado%20desde%20un%20punto%20de%20inicio%20en%20particular.%20Por%20ejemplo%2C%20%C2%BFhay%20alguna%20funci%C3%B3n%20que%20pueda%20generar%20la%20diferencia%20de%20tiempo%20entre%20la%20hora%20de%20inicio%2000%3A00%3A00%20y%2000%3A00%3A01%3F%20O%20una%20funci%C3%B3n%20que%20podr%C3%ADa%20agregar%20un%20segundo%20a%2000%3A00%3A00%20para%20convertirlo%20en%2000%3A00%3A01.%20Solo%20por%20curiosidad%2C%20ya%20que%20me%20ahorrar%C3%ADa%20algo%20de%20tiempo.%20Adem%C3%A1s%2C%20%C2%BFhay%20una%20funci%C3%B3n%20para%20convertir%20HH%3A%20MM%3A%20SS%20en%20minutos%20en%20JSL%3F%20Si%20no%20es%20as%C3%AD%2C%20%C2%BFcu%C3%A1l%20sugerir%C3%ADa%20que%20sea%20la%20forma%20m%C3%A1s%20sencilla%20de%20realizar%20dicha%20conversi%C3%B3n%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECualquier%20ayuda%20ser%C3%ADa%20apreciada.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-61127%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERE%3A%20Tipo%20de%20datos%20de%20tiempo%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61127%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EGracias%20por%20la%20ayuda.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-61071%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERE%3A%20Tipo%20de%20datos%20de%20tiempo%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61071%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESuponiendo%20que%20la%20variable%3CSTRONG%3E%20tiempo%3C%2FSTRONG%3E%20contiene%20un%20valor%20num%C3%A9rico%20como%20el%20n%C3%BAmero%20de%20segundos%2C%20la%20expresi%C3%B3n%20para%20convertir%20un%20valor%20de%20tiempo%20es%3CSTRONG%3E%20tiempo%20%2F%20En%20Minutos(%201%20)%3C%2FSTRONG%3E%20.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-61070%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERE%3A%20Tipo%20de%20datos%20de%20tiempo%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61070%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJMP%20utiliza%20los%20segundos%20como%20medida%20del%20tiempo%20y%20base%20de%20las%20fechas.%20El%20valor%200%20equivale%20a%20las%2000%3A00%20del%201%20de%20enero%20de%201904.%20Entonces%20el%3CSTRONG%3E%20sustraer%3C%2FSTRONG%3E%20La%20funci%C3%B3n%20puede%20tomar%20la%20diferencia%20en%20segundos%20entre%20dos%20valores%20de%20hora%20o%20fecha.%20Del%20mismo%20modo%2C%20el%3CSTRONG%3E%20agregar%3C%2FSTRONG%3E%20La%20funci%C3%B3n%20se%20puede%20utilizar%20para%20incrementar%20directamente%20un%20valor%20de%20fecha%20o%20hora%20en%20un%20segundo.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPuede%20ingresar%20f%C3%A1cilmente%20un%20valor%20literal%20(constante)%20usando%20el%3CSTRONG%3E%20DDMMmmAAAA%3AHH%3AMM%3ASS.S%3C%2FSTRONG%3E%20forma%2C%20as%C3%AD%3CSTRONG%3E%2025jun2018%3C%2FSTRONG%3E%20es%20hoy.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-61061%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERE%3A%20Tipo%20de%20datos%20de%20tiempo%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61061%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHola%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGracias%20por%20la%20ayuda.%20Estoy%20usando%20una%20versi%C3%B3n%20anterior%20de%20JMP%2C%20por%20lo%20que%20no%20tiene%20otros%20ejemplos.%20%C2%BFTiene%20alguna%20idea%20de%20c%C3%B3mo%20usar%C3%ADa%20la%20funci%C3%B3n%20para%20los%20tiempos%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-61057%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERE%3A%20Tipo%20de%20datos%20de%20tiempo%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61057%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EPruebe%20'Ayuda%20%26gt%3B%20%C3%8Dndice%20de%20secuencias%20de%20comandos'%2C%20luego%20ingrese%20'fecha'%20en%20el%20campo%20de%20b%C3%BAsqueda%20para%20producir%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screen%20Shot%202018-06-25%20at%2011.48.48.png%22%20style%3D%22width%3A%20801px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screen%20Shot%202018-06-25%20at%2011.48.48.png%22%20style%3D%22width%3A%20801px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screen%20Shot%202018-06-25%20at%2011.48.48.png%22%20style%3D%22width%3A%20801px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F11250i2469B576EC9F72E2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screen%20Shot%202018-06-25%20at%2011.48.48.png%22%20alt%3D%22Screen%20Shot%202018-06-25%20at%2011.48.48.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EEsto%20muestra%20las%20primitivas%20JSL%20que%20coinciden%20con%20su%20b%C3%BAsqueda%20y%2C%20por%20lo%20general%2C%20hay%20uno%20o%20ejemplos%20de%20modo%20de%20cada%20uno%20para%20ayudarlo.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Jaz
Jaz
Level IV

RE: JSL Time Data Type

Hi,

 

I was just wondering if there was a way for JSL to tell how much time it has been since a particular start point. For example, is there a function that could output the time difference between the start time 00:00:00 and 00:00:01? Or a function that could add one second onto 00:00:00 to make it 00:00:01. Just curious as it would save me some time. Also, is there a function to convert HH:MM:SS to minutes in JSL? If not, what would you suggest to be the simplest way of doing such a conversion?

 

Any help would be appreciated.

2 ACCEPTED SOLUTIONS

Accepted Solutions

RE: JSL Time Data Type

JMP uses seconds as the measure of time and the basis for dates. The value 0 is equivalent to 12:00 AM January 1, 1904. So the subtract function can take the difference in seconds between two time or date values. Similarily, the add function can be used to directly increment a time or date value by one second.

 

You can easily enter a literal value (constant) using the DDMmmYYYY:HH:MM:SS.S form, so 25Jun2018 is today.

View solution in original post

RE: JSL Time Data Type

Assuming that the variable time contains numeric value as the number of seconds, the expression to convert a time value is time / In Minutes( 1 ).

View solution in original post

5 REPLIES 5
ian_jmp
Level X

RE: JSL Time Data Type

Try 'Help > Scripting Index', then enter 'date' into the serach field to produce:

Screen Shot 2018-06-25 at 11.48.48.png

This shows the JSL primitives that match your serach, and, typically, there are one or mode examples of each to get you going.

Jaz
Jaz
Level IV

RE: JSL Time Data Type

Hi,

 

Thanks for the help. I'm using an older version of JMP so it doesn't have  any other examples. Do you have any idea how I would use the function for timings?

 

 

 

RE: JSL Time Data Type

JMP uses seconds as the measure of time and the basis for dates. The value 0 is equivalent to 12:00 AM January 1, 1904. So the subtract function can take the difference in seconds between two time or date values. Similarily, the add function can be used to directly increment a time or date value by one second.

 

You can easily enter a literal value (constant) using the DDMmmYYYY:HH:MM:SS.S form, so 25Jun2018 is today.

RE: JSL Time Data Type

Assuming that the variable time contains numeric value as the number of seconds, the expression to convert a time value is time / In Minutes( 1 ).

Jaz
Jaz
Level IV

RE: JSL Time Data Type

Thanks for the help. 

Recommended Articles