Skip to main content

io.input.time

Requests a time.

Usage

const time = await io.input.time("Time");
interval.com

Props

defaultValue

object Optional

Default value for the input.

hour

number Required

The hour of the default time value.

minute

number Required

The minute of the default time value.

disabled

boolean Optional

Whether the input is disabled, preventing changes from the `defaultValue`.

helpText

string Optional

Optional label providing additonal context.

max

object Optional

Latest possible time value for the input.

hour

number Required

The hour of the maximum time, 1-12.

minute

number Required

The minute of the maximum time.

min

object Optional

Earliest possible time value for the input.

hour

number Required

The hour of the minimum time, 1-12.

minute

number Required

The minute of the minimum time.

Returns

object

hour

number

The hour in the day of the provided time, 0-23.

minute

number

The minute of the provided time.
Was this section useful?
On this page