@medalsocial/meda
Version:
Shared Meda UI shell and runtime package.
10 lines (9 loc) • 410 B
TypeScript
export interface FormatClockOptions {
/** IANA timezone, e.g. "Europe/Stockholm". Defaults to local tz. */
tz?: string;
/** Include seconds (default true). */
withSeconds?: boolean;
}
export declare function formatClock(date: Date, opts?: FormatClockOptions): string;
export declare function formatDuration(ms: number): string;
export declare function formatRelativeOffset(ms: number): string;