weekday func supports timestamp attr