Skip to main content

Interface: TimeDisplayProps

Defined in: workingtitle-instruments-epic2/shared/Components/Time/TimeDisplay.tsx:21

Component props for TimeDisplay.

Extends​

Properties​

children?​

optional children: DisplayChildren[]

Defined in: sdk/components/FSComponent.ts:125

The children of the display component.

Inherited from​

ComponentProps.children


class?​

optional class: string | ToggleableClassNameRecord | SubscribableSet<string>

Defined in: workingtitle-instruments-epic2/shared/Components/Time/TimeDisplay.tsx:43

CSS class(es) to apply to the root of the component.


format​

format: TimeDisplayFormat | Subscribable<TimeDisplayFormat>

Defined in: workingtitle-instruments-epic2/shared/Components/Time/TimeDisplay.tsx:26

The display format, or a subscribable which provides it.


hideSuffixWhenNaN?​

optional hideSuffixWhenNaN: boolean

Defined in: workingtitle-instruments-epic2/shared/Components/Time/TimeDisplay.tsx:40

Whether to hide the suffix when the displayed time is equal to NaN. Defaults to false.


localOffset​

localOffset: number | Subscribable<number>

Defined in: workingtitle-instruments-epic2/shared/Components/Time/TimeDisplay.tsx:29

The local time offset, in milliseconds, or a subscribable which provides it.


ref?​

optional ref: NodeReference<any>

Defined in: sdk/components/FSComponent.ts:128

A reference to the display component.

Inherited from​

ComponentProps.ref


suffixFormatter()?​

optional suffixFormatter: (format, isAm) => string

Defined in: workingtitle-instruments-epic2/shared/Components/Time/TimeDisplay.tsx:37

A function which formats suffixes to append to the displayed time. If not defined, then the suffix will be will be formatted as 'UTC' if the display format is TimeDisplayFormat.UTC, 'LCL' if the display format is TimeDisplayFormat.Local24, and either 'AM' or 'PM' if the display format is TimeDisplayFormat.Local12.

Parameters​

ParameterType
formatTimeDisplayFormat
isAmboolean

Returns​

string


time​

time: number | Subscribable<number>

Defined in: workingtitle-instruments-epic2/shared/Components/Time/TimeDisplay.tsx:23

The time to display, as a UNIX timestamp in milliseconds, or a subscribable which provides it.