Liferay.Loader.define("analytics-reports-web@2.0.38/js/utils/dateFormat",["module","exports","require"],(function(t,e,r){window;Object.defineProperty(e,"__esModule",{value:!0}),e.generateDateFormatters=function(t){return{formatChartTitle:function([e,r]){const n=(e,r={day:"numeric",month:"short",year:"numeric"})=>Intl.DateTimeFormat([t],r).format(e),a=e.getMonth()===r.getMonth(),o=e.getYear()===r.getYear(),m={day:"numeric",month:a&&o?void 0:"short",year:o?void 0:"numeric"};return r-e<=864e5?n(r):"".concat(n(e,m)," - ").concat(n(r))},formatLongDate:function(e){return Intl.DateTimeFormat([t]).format(new Date(e))},formatNumericDay:function(e){return Intl.DateTimeFormat([t],{day:"numeric"}).format(new Date(e))},formatNumericHour:function(e){return Intl.DateTimeFormat([t],{hour:"numeric"}).format(new Date(e))}}}}));
//# sourceMappingURL=dateFormat.js.map