mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-23 17:08:10 -07:00
website_next: part 3
This commit is contained in:
@@ -37,6 +37,11 @@ export function createHeightElement(height) {
|
||||
return container;
|
||||
}
|
||||
|
||||
/** @param {number} value */
|
||||
export function formatNumber(value) {
|
||||
return value.toLocaleString();
|
||||
}
|
||||
|
||||
/** @param {number} unixSeconds */
|
||||
export function formatShortDate(unixSeconds) {
|
||||
const date = new Date(unixSeconds * 1_000);
|
||||
|
||||
Reference in New Issue
Block a user