Horas transcuridas en formato 24h

Tengo este inconveniente quisiera saber las horas que transcurren de un día a otro según la imagen

De esta manera si obtengo las hora transcurridas

Pero cuando cambio la fecha un día anterior al 03/10/2022 debería obtener 26 horas lo cual no ocurre

saludos..

adjunto .aia
para que puedan visualizarlo o darme alguna sugerencia saludos

f24.aia (3.6 KB)

Try this


And use additionally the method DurationToHours from the Clock component Sensors rather than dividing manually

Taifun


tampoco resulta
sale 746 cuando debería ser 26

you are using the MakeInstant method, see again the documentation Sensors

MakeInstant(from)
Returns an instant in time specified by MM/dd/YYYY hh:mm:ss or MM/dd/YYYY or hh:mm.

which means, you have to switch day and month to get the correct value...

alternatively use the MakeInstantFromParts method...

btw. for the screenshots it would be better to provide screenshots with english blocks, so wveryone is able to understand, what you are doing... just switch the language temporarily to English before making a screenshot next time...

Taifun

1 Like

image

AHORA SI

Y como podría convertir esos decimales de hora en 25:min:seg

25,49167 hours

multiply the remainder by 60 to get the minutes
in the example 0,49167 x 60 = 29,5002 minutes

now take again the remainder and multiply by 60 to get the seconds
in the example 0,5002 * 60 = 30,012 seconds

Taifun

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.