io.input.time
Requests a time.
Usage
- TypeScript
- JavaScript
const time = await io.input.time("Time");
const time = await io.input.time("Time");
interval.com
Props
- TypeScript
- JavaScript
defaultValue
Optional
object
Default value for the input.
{
hour: number; // 0-23
minute: number;
}
disabled
Optional
boolean
Whether the input is disabled, preventing changes from the `defaultValue`.
helpText
Optional
string
Optional label providing additional context. Supports inline markdown elements like bold, italics, and links.
max
Optional
object
Latest possible value for the input.
{
hour: number; // 0-23
minute: number;
}
min
Optional
object
Earliest possible value for the input.
{
hour: number; // 0-23
minute: number;
}
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.
{
hour: number; // 0-23
minute: number;
}
disabled
Optional
boolean
Whether the input is disabled, preventing changes from the `defaultValue`.
helpText
Optional
string
Optional label providing additional context. Supports inline markdown elements like bold, italics, and links.
max
Optional
object
Latest possible value for the input.
{
hour: number; // 0-23
minute: number;
}
min
Optional
object
Earliest possible value for the input.
{
hour: number; // 0-23
minute: number;
}
Returns
object
hour
number
The hour in the day of the provided time, 0-23.
minute
number
The minute of the provided time.
Did this section clearly explain what you wanted to learn?