input.time

Date and time input, UTC milliseconds; the default is a number (timestamp() is not a constant). Returns an input int.

input.time(defval: const int, title: const string = na, tooltip: const string = na, group: const string = na, inline: const string = na, confirm: const bool = false, display: const string = na, active: const bool = true) -> int

Parameters

Example

start = input.time(1767623400000, "Start") // 2026-01-05 14:30 UTC