当前位置: 首页 > 网络学院 > 服务端脚本教程 > PHP > JewishToJD() 函数

PHP
PHP 安全邮件
MySQL 介绍
连接 MySQL
创建 MySQL
MySQL 插入记录
MySQL 选择记录
MySQL Where
MySQL Order By
MySQL 记录更新
MySQL 删除记录
PHP ODBC
XML Expat Parser
XML SimpleXML
PHP 数组参考
PHP Calendar
PHP Date
PHP Directory
PHP Filesystem
PHP FTP
PHP HTTP

PHP 中的 JewishToJD() 函数


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 551 ::
收藏到网摘: n/a

Definition and Usage
定义和用法

The JewishToJD() function converts a Jewish calendar date to a Julian day count.
JewishToJD()函数的作用是:将犹太历转为儒略日计数。

Syntax
语法

jewishtojd(month,day,year)

Parameter
参数
Description
描述
month Required. Specifies the month
必要参数。指定月份
day Required. Specifies the day
必要参数。指定日
year Required. Specifies the year
必要参数。指定年份


Tips and Notes
注意点

Note: Although this function can handle dates back to year 1 (3761 B.C.), you should notice that in the beginning there was no formula to determine the start of a month. A new month was started when the new moon was first observed.
注意:尽管该函数可以处理year 1(公元前3761年),你也应该知道:在刚开始的时候,并不存在定义一个月份起始的规则。当人们观察到一轮新月开始的时候,那么一个新的月份的开始将被定义。


Example
案例

<?php
echo(jewishtojd(2,2,5763));
?>

The output of the code above will be:
上述代码将输出下面的结果:

2452556

评论 (0) All

登陆 | 还没注册?