Online Documentation for getDayOfYear() incorrect ?

Online Documentation for getDayOfYear() incorrect ?

The text regarding 'getDayOfYear()' on page :  https://www.zoho.com/creator/help/script/built-in-functions.html#Time_functions

Looks like it refers to 'Day of the Week' and not day of the year ?

"returns a number in the range (1-7), representing the number of the day of the year,that date falls. The number "1" represents Sunday, "2" represents Monday and so on."

Does the function not return a number 1-365 or does it actually replicate the functionality of getDayOfWeek() ?

Neil