array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.jddayofweek.php', 1 => 'jddayofweek', ), 'up' => array ( 0 => 'ref.calendar.php', 1 => 'Calendar Functions', ), 'prev' => array ( 0 => 'function.gregoriantojd.php', 1 => 'gregoriantojd', ), 'next' => array ( 0 => 'function.jdmonthname.php', 1 => 'jdmonthname', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/calendar/functions/jddayofweek.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
jddayofweek — Returns the day of the week
Returns the day of the week. Can return a string or an integer depending on the mode.
julian_day
A julian day number as integer
mode
Mode | Meaning |
---|---|
0 (Default) | Return the day number as an int (0=Sunday, 1=Monday, etc) |
1 | Returns string containing the day of week (English-Gregorian) |
2 | Return a string containing the abbreviated day of week (English-Gregorian) |
The gregorian weekday as either an integer or string.