function i(t){if(t==null)return null;const e=t instanceof Date?t:new Date(t*1e3),r=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${r}-${n}-${a}`}function f(t){const e=new Date(t*1e3),r=String(e.getHours()).padStart(2,"0"),n=String(e.getMinutes()).padStart(2,"0");return`${r}:${n}`}function g(t){return`${i(t)} ${f(t)}`}function D(t){return String(t).padStart(2,"0")}function l(t){const e=new Date(t*1e3),r=new Date;if(e.getDate()===r.getDate()&&e.getMonth()===r.getMonth()&&e.getFullYear()===r.getFullYear())return"Сегодня";const n=new Date;return n.setDate(n.getDate()-1),e.getDate()===n.getDate()&&e.getMonth()===n.getMonth()&&e.getFullYear()===n.getFullYear()?"Вчера":i(t)}function d(t){if(t==null||t==="")return"";const e=Number.parseInt(String(t),10);if(!Number.isFinite(e))return"";const r=new Date(e*1e3),a=new Date().getTime()-r.getTime(),o=Math.floor(a/1e3),s=Math.floor(o/60),u=Math.floor(s/60),c=Math.floor(u/24);return o<60?`${o} сек. от статуса`:s<60?`${s} мин. от статуса`:u<24?`${u} ч. от статуса`:`${c} дн. от статуса`}export{g as a,l as b,d as c,f as d,D as e,i as f};
