Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

reload time

1 - How can i get current reload time (not last reload time)

2 - How can i get last reload time of other QVW

13 Replies
christian77
Partner - Specialist
Partner - Specialist

Hi.

reloadtime()

christian77
Partner - Specialist
Partner - Specialist

If you want how much time per reload, set a variable vStartTime = now(); at the beginning of your script and vEndingTime = now(); at the end of your script. Then vEndingTime - vStartTime will give you the time.

To set it to last or previous make a variables change at the very beginning.

Not applicable
Author

reloadtime() gives last reload time

Not applicable
Author

now() keeps on moving like a clock

Not applicable
Author

What do you mean with "current reload time"?

Not applicable
Author

If I press reload at 6:01 and last reload time was 5:01. it should be 6:01

christian77
Partner - Specialist
Partner - Specialist

Ok.

In your var panel set vTIME = reloadtime()

at the beginning of your script say vPreviousTIME = vTIME. Every time you execute the reload, the previous reload time will pass to the var vPreviousTIME and vTIME will become the new reloadtime().

Not applicable
Author

Ok, then last reload time was 5:01 according to your server time... ...then just add an hour to adjust for different server time related to your local time.

Not applicable
Author

Hi,

now(0) returns at every moment the time of reload. Can be used in any object like a text box if needed.

The default of now is 1, meaning that the time returned is when the function is called.

Fabrice