UNPKG

graphdb-workbench

Version:
2 lines 684 B
export const __webpack_esm_id__=65820;export const __webpack_esm_ids__=[65820];export const __webpack_esm_modules__={65820:(e,t,a)=>{a.d(t,{Q:()=>n});const n=(e,t,a,n={})=>{if(!a)return"";const o=new Date(a),s=new Date,_=new Date(s.getFullYear(),s.getMonth(),s.getDate()),m=new Date(_);m.setDate(_.getDate()-1);const r=new Date(o.getFullYear(),o.getMonth(),o.getDate()),d=n.timeFormat?t("date")(o,n.timeFormat):"";if(r.getTime()===_.getTime())return e.instant("common.dates.today")+d;if(r.getTime()===m.getTime())return e.instant("common.dates.yesterday")+d;{const e=n.dateFormat||"yyyy-MM-dd";return t("date")(o,e)+d}}}}; //# sourceMappingURL=65820.101bad0ff6572c2363c5.bundle.js.map