import a from"moment";import{DATE_RANGE_FILTERS_BY_KEYS as t}from"../constants/alerts.js";var r=function(r){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=null;switch(r){case t.last12hours.value:e=a().subtract(12,"hours");break;case t.last24hours.value:e=a().subtract(1,"days");break;case t.last7days.value:e=a().subtract(7,"days");break;case t.lastMonth.value:e=a().subtract(1,"month");break;default:return null}return s?e.valueOf():e.unix()};export{r as getStartTimeByRelativeRange};
//# sourceMappingURL=alerts.js.map
