Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
SterreKapteijns
Partner - Contributor III
Partner - Contributor III

now() does not generate current timestamp in load script

Hi, 

I am trying to generate a UNIX timestamp with the now() function that needs to be used in a API call. I need to generate the UNIX timestamp at the moment of calling the API endpoint.

Therefore I use: let vtimestamp = Floor(now()-MakeDate(1970,1,1))*86400;

However, it is not working as expected. At this moment, it returns for example '1718409600', while the current timestamp is 1718458763. Even when I refresh the page and run the script again, it still returns an old value. 

Is there some reason why I do not get the current timestamp? 

Thanks in advance. 

Kind regards, Sterre

Labels (2)
10 Replies
SterreKapteijns
Partner - Contributor III
Partner - Contributor III
Author

Yeah I was, small typo. Thanks 🙂