Application Framework Reference

Splunk API

clearTimeRange()

The clearTimeRange() method resets the search TimeRange object to the all time default and undefines savedSearchName, if it is defined.

Synopsis

this = clearTimeRange()

Return Value

Object

Current object.

Example

var context = this.getContext();var search = context.get('search');
search.absorbIntentions();
search.clearIntentions();
context.set('search', search);
return context;
 

See Also

getTimeRange()
setTimeRange()
Splunk.TimeRange