Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Yeah I was, small typo. Thanks 🙂