The DOW([unixtime]) function returns the day of the week (1=Sunday, 7=Saturday) component from the current time or an optional unixtime.