time_t_dayofweek()

 
Returns the current day of the week as a number (Sunday=1). time_zone can be the keyword 'local'
Syntax
time_t_dayofweek( timet, time_zone )
User Annotations: time_t_dayofweek