io.input.time
Requests a time.
Usage
- TypeScript
- JavaScript
- Python Experimental
const time = await io.input.time("Time");
const time = await io.input.time("Time");
time = await io.input.time("Time")
interval.com
Props
- TypeScript
- JavaScript
- Python Experimental
defaultValue
Optional
object
Default value for the input.
disabled
Optional
boolean
Whether the input is disabled, preventing changes from the `defaultValue`.
helpText
Optional
string
Optional label providing additional context.
max
Optional
object
Latest possible time value for the input.
hour
Required
number
The hour of the maximum time, 1-12.
minute
Required
number
The minute of the maximum time.
min
Optional
object
Earliest possible time value for the input.
hour
Required
number
The hour of the minimum time, 1-12.
minute
Required
number
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.
defaultValue
Optional
object
Default value for the input.
disabled
Optional
boolean
Whether the input is disabled, preventing changes from the `defaultValue`.
helpText
Optional
string
Optional label providing additional context.
max
Optional
object
Latest possible time value for the input.
hour
Required
number
The hour of the maximum time, 1-12.
minute
Required
number
The minute of the maximum time.
min
Optional
object
Earliest possible time value for the input.
hour
Required
number
The hour of the minimum time, 1-12.
minute
Required
number
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.
default_value
Optional
time
Default value for the input.
disabled
Optional
bool
Whether the input is disabled, preventing edits to the default value.
help_text
Optional
str
Secondary label for providing additional context.
max
Optional
time
Latest possible time value for the input.
min
Optional
time
Earliest possible time value for the input.
Returns
time
Did this section clearly explain what you wanted to learn?