Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
SterreKapteijns
Partner Ambassador
Partner Ambassador

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

Yeah I was, small typo. Thanks 🙂