Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
SterreKapteijns
Partner - Creator
Partner - Creator

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 - Creator
Partner - Creator
Author

Yeah I was, small typo. Thanks 🙂