Shorter processing time when defining a global variable

I did not find documentation or some previous question that solves me this doubt:

Which of these options is processed faster?

Or what is the most correct form » 1, 2 or 3?

TIA :pray:

Lito

@>-->---

in my opinion Option 1 is the most correct form if the goal is to retrieve the current time formatted according to My_Pattern
othr 2 & 3 do not reflect the most current time without potential delays or outdated values

Both in 1, 2 o 3, the goal is that Current_Time2 is equal to Current_Time... and the 3 alternatives reach the goal. Still, it must have any of them that consumes shorter processing time.

@>-->---

Local variables might be faster (though not by much) than global variables

1 Like