dayofweek
Day of week of the bar open in the exchange time zone (dayofweek.sunday = 1 ... dayofweek.saturday = 7).
dayofweek(time: int, timezone: string = na) -> int
Parameters
timeint: A UTC time in milliseconds, like time or time_close; na gives na.timezonestring: an IANA name such as "America/New_York", or "UTC", "UTC+2", "GMT-5"
Example
dayofweek(time, "America/New_York")