core.formatwalltime | Medplum
formatWallTime() function
Formats a FHIR time string as a human readable string. The viewer's timezone does not affect the display.
Signature:
export declare function formatWallTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
Parameters
| Parameter | Type | Description |
|---|---|---|
| time | string | The time to format, a string like HH:mm or HH:mm:ss |
| locales | Intl.LocalesArgument | (Optional) Optional locales. |
| options | Intl.DateTimeFormatOptions | (Optional) Optional time format options. |
Returns:
string
The formatted time string.