Return the weekday of 13th January, 1998:
<?php
$jd=gregoriantojd(1,13,1998);
echo jddayofweek($jd,1);
?>
Run Example »
The jddayofweek() function returns the day of the week.
jddayofweek(
jd,mode);
Parameter | Description |
---|---|
jd | Required. A Julian Day number |
mode | Optional. Specifies how to return the weekday. Can have one of the following values:
|
Return Value: | Returns the Gregorian weekday as a string or integer (depends on the mode parameter) |
---|---|
PHP Version: | 4+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!