Definition: | integer i = day_of_week(integer y, m, d) |
Description: | Returns an integer from 1 to 7 (Sun..Sat). |
Comments: |
Obviously this functionality is required as part of date(), and has been made available for general use.
Not suitable for use with years prior to the introduction of the Gregorian calendar (1752). |
Example: |
?day_of_week(2015,1,1) -- prints 5 (Thursday) |
See Also: | date, time |