timestamp
UTC milliseconds of a wall-clock time. Without timezone the exchange time zone is used. Values past the end of a unit roll over, so day + 1 on the last day of a month is the 1st of the next month.
timestamp(timezone: string, year: int, month: int, day: int, hour: int = 0, minute: int = 0, second: int = 0) -> int
timestamp(year: int, month: int, day: int, hour: int = 0, minute: int = 0, second: int = 0) -> int
Parameters
timezonestring: An IANA name such as "America/New_York", or "UTC", "UTC+2" (default: the exchange time zone); an unknown zone stops the script with a runtime error.yearint: The year, such as 2026.monthint: The month, 1 to 12; past 12 rolls into the next year.dayint: The day of the month; past the month's end rolls into the next month.hourint: The hour, 0 to 23 (default 0).minuteint: The minute (default 0).secondint: The second (default 0).
Example
nextOpen = timestamp("America/New_York", year, month, dayofmonth + 1, 9, 30)