The getTimeFormat() method gets a formatted absolute time used by the REST API. This method wraps Splunk.util.getConfigValue( 'DISPATCH_TIME_FORMAT' ) .
formattedTime = getTimeFormat()
|
String |
Server configured dispatch time format |
var context = this.getContext();var search = context.get('search');
var range = search.getTimeRange();
alert(range.getTimeFormat());