PHP jddayofweek() 函数
PHP 教程
· 2019-01-23 08:14:42
实例
返回 1998 年 1 月 13 日这天是周几:
<?php
$jd=gregoriantojd(1,13,1998);
echo jddayofweek($jd,1);
?>
$jd=gregoriantojd(1,13,1998);
echo jddayofweek($jd,1);
?>
定义和用法
jddayofweek() 函数返回日期在周几。
语法
jddayofweek(jd,mode);
| 参数 | 描述 |
|---|---|
| jd | 必需。数字(儒略日计数)。 |
| mode | 可选。定义如何返回周几(数字还是字符串)。可以是下列值中的一个:
|
技术细节
| 返回值: | 以字符串或者整数(取决于 mode 参数)返回格利高里历法表示的周的天。 |
|---|---|
| PHP 版本: | 4+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Blog Design Solutions
Richard Rutter、Andy Budd、Simon Collison、Chris J Davis、Michael Heilemann、Phil Sherry、David Powers、John Oxton / friendsofED / 2006-2-16 / USD 39.99
Blogging has moved rapidly from being a craze to become a core feature of the Internetfrom individuals sharing their thoughts with the world via online diaries, through fans talking about their favori......一起来看看 《Blog Design Solutions》 这本书的介绍吧!
JS 压缩/解压工具
在线压缩/解压 JS 代码
XML 在线格式化
在线 XML 格式化压缩工具