Quantcast
Viewing all articles
Browse latest Browse all 47296

Is it possible to derive the server's time using SplunkJS or by other means using JavaScript?

Using `Math.floor(new Date()/1000);` results in the browser's epoch time. Is it possible using the JS libraries provided by Splunk to return the current server-side time? For example I can use `Splunk.util.getConfigValue("USERNAME")` to get the username of the current person viewing.

Viewing all articles
Browse latest Browse all 47296

Trending Articles