onchain, lightning, and utxo activity cards

This commit is contained in:
Paul Miller
2023-04-18 19:41:58 -05:00
parent 18e3ad8a41
commit 4be030749a
14 changed files with 330 additions and 30 deletions

View File

@@ -0,0 +1,12 @@
export function prettyPrintTime(ts: number) {
const options = {
weekday: 'long',
year: 'numeric',
month: 'short',
day: 'numeric',
hour: 'numeric',
minute: 'numeric'
};
return new Date(ts * 1000).toLocaleString('en-US', options as any);
}