KB-30432: Difference between current time and time in a setpoint, in minutes.

Question:

How can I obtain the difference between the current date/time and the date/time input in a setpoint, in minutes?

Solution:

To do so, you can use the following script:

Dim aux, aux1

aux = Now – Screen.Item(“Texto12”).Value

aux1 = aux * 24 * 60

MsgBox aux1


Where
:

  • “Screen.Item(“Texto12″).Value” stands for the setpoint where date/time is input;
  • “aux1” is the variable containing the amount of minutes in the difference between current time and the previous value.
Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *