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

PHP
WINDOWS下安装MySQL
PHP 制作 网站/服务器 监视脚本
用PHP和CSS制作活动按钮
PHP 单件模式
PHP MVC模式,类封装以及HACK
PHP 中使用正则表达式
PHP 防止 SQL 注入攻击
PHP 跨站点脚本攻击
PHP 防止用户操纵 GET 变量
PHP 防止远程表单提交

PHP 中的 JewishToJD() 函数


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 552 ::
收藏到网摘: 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

登陆 | 还没注册?