UNPKG

@sofaws/dapp-core

Version:

A library to hold the main logic for a dapp on the Elrond Network

3 lines (2 loc) 402 B
import{m as e}from"./chunk-HBP5N4FR.js";e();function y({value:o,noSeconds:n,utc:a}){let t=new Date(o*1e3),[,c]=t.toLocaleString("en-US",{hour:"numeric",hour12:!0}).split(" "),m=t.toUTCString(),[,r]=m.split(","),[s,u,i,l]=r.trim().split(" "),[$,d,p]=l.split(":"),f=`:${p}`,T=`${$}:${d}${n?"":f}`;return`${u} ${s}, ${i} ${T} ${c}${a?" UTC":""}`}export{y as a}; //# sourceMappingURL=chunk-EXJ5ZTBR.js.map