const u=s=>{const a=s.split(".")[0]+"Z",i=new Date(a),o=Math.floor((new Date().getTime()-i.getTime())/1e3);if(o<5)return"Just now";if(o<60)return`${o} second${o>1?"s":""} ago`;const e=Math.floor(o/60);if(e<60)return`${e} minute${e>1?"s":""} ago`;const n=Math.floor(e/60);if(n<24)return`${n} hour${n>1?"s":""} ago`;const t=Math.floor(n/24);if(t<30)return`${t} day${t>1?"s":""} ago`;const r=Math.floor(t/30);if(r<12)return`${r} month${r>1?"s":""} ago`;const f=Math.floor(t/365);return`${f} year${f>1?"s":""} ago`};export{u as f};
