array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.jddayofweek.php', 1 => 'jddayofweek', ), 'up' => array ( 0 => 'ref.calendar.php', 1 => 'Calendar 函数', ), 'prev' => array ( 0 => 'function.gregoriantojd.php', 1 => 'gregoriantojd', ), 'next' => array ( 0 => 'function.jdmonthname.php', 1 => 'jdmonthname', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', '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 — 返回星期几
julian_day
int 类型的儒略日数
mode
模式 | 含义 |
---|---|
0 (默认) | 返回 int 类型的星期几(0 = Sunday, 1 = Monday,等等) |
1 | 以英文返回公历形式的 string 类型的星期几 |
2 | 以英文返回公历形式的 string 类型的星期几缩写 |
int 或 string 类型的公历星期几。