graphdb-workbench
Version:
The web application for GraphDB APIs
2 lines • 703 B
JavaScript
export const __webpack_id__=65820;export const __webpack_ids__=[65820];export const __webpack_modules__={65820:(e,t,a)=>{a.r(t),a.d(t,{getHumanReadableTimestamp:()=>n});const n=(e,t,a,n={})=>{if(!a)return"";const o=new Date(a),r=new Date,m=new Date(r.getFullYear(),r.getMonth(),r.getDate()),s=new Date(m);s.setDate(m.getDate()-1);const _=new Date(o.getFullYear(),o.getMonth(),o.getDate()),d=n.timeFormat?t("date")(o,n.timeFormat):"";if(_.getTime()===m.getTime())return e.instant("common.dates.today")+d;if(_.getTime()===s.getTime())return e.instant("common.dates.yesterday")+d;{const e=n.dateFormat||"yyyy-MM-dd";return t("date")(o,e)+d}}}};
//# sourceMappingURL=65820.0c9e9d30665f88635342.bundle.js.map