UNPKG

@fntio/infra-client

Version:

Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.

2 lines (1 loc) • 271 B
function a(t,o=Date.now()){if(!t)return"never";let e=Date.parse(t);if(Number.isNaN(e))return"never";let r=Math.floor((o-e)/6e4);if(r<1)return"just now";if(r<60)return`${r} min ago`;let n=Math.floor(r/60);return n<48?`${n} h ago`:`${Math.floor(n/24)} days ago`}export{a};