JDDAYOFWEEK
Returns the day of the week
SYNTAX
jddayofweek ( int $julianday [, int $mode = CAL_DOW_DAYNO ] ) : mixed
PARAMETERS
julianday
A julian day number as integer
mode
NUMBER | NAME | DESCRIPTION |
---|---|---|
0 | CAL_DOW_DAYNO | Return the day number as an int (0=Sunday, 1=Monday, etc) |
1 | CAL_DOW_LONG | Returns string containing the day of week (English-Gregorian) |
2 | CAL_DOW_SHORT | Return a string containing the abbreviated day of week (English-Gregorian) |
RETURN
The gregorian weekday as either an integer or string.
EXAMPLES
JULIANDAY
3
MODE | CAL_DOW_DAYNO
3
MODE | CAL_DOW_LONG
Wednesday
MODE | CAL_DOW_SHORT
Wed