/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{toLocalTimeExtent as t,toUTCTimeExtent as e}from"../../support/timeUtils.js";function n(t){return null!=t?.timeInfo}function i(n,i,l){if(null==n?.timeInfo)return null;const{datesInUnknownTimezone:o=!1,timeOffset:u,useViewTime:s}=n;let m=n.timeExtent;o&&(m=t(m));let r=s?i&&m?i.intersection(m):i||m:m;return!r||r.isEmpty||r.isAllTime?r:(u&&(r=r.offset(-u.value,u.unit)),o&&(r=e(r)),r.equals(l)?l:r)}export{i as combineTimeExtent,n as hasTimeOptions};
