import{D as n}from"./datetime.f197aeae.js";import"./translations.e71e2202.js";import{t as o}from"./constants.41876895.js";import{_ as e}from"./default-i18n.65d58dd6.js";function u(a,t="yyyy-MM-dd HH:mm:ss"){return n.fromSQL(a,{zone:"utc"}).setZone(n.local().zoneName).toFormat(t)}function m(a){return n.fromSQL(a,{zone:"utc"}).setZone(n.local().zoneName).toRelative().replace("a few seconds ago",e("a few seconds ago",o)).replace("a minute ago",e("a minute ago",o)).replace("minutes ago",e("minutes ago",o)).replace("a day ago",e("a day ago",o)).replace("days ago",e("days ago",o)).replace("a month ago",e("a month ago",o)).replace("months ago",e("months ago",o)).replace("a year ago",e("a year ago",o)).replace("years ago",e("years ago",o))}function i(a,t="yyyy-MM-dd HH:mm:ss"){return a?n.fromJSDate(a).setZone(n.local().zoneName).toFormat(t):null}function p(a){return a?n.fromJSDate(new Date(a)).setZone(n.local().zoneName).toJSDate():null}export{p as a,u as b,m as c,i as d};
