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.
You could run a search query | makeresults and get the value from job.results
http://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/Makeresults
You could run a search query | makeresults and get the value from job.results
http://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/Makeresults