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

PHP
PHP 介绍
PHP 安装
PHP 语法
PHP 变量
PHP操作符
PHP If...Else
PHP Switch
PHP 数组
PHP 循环
PHP 函数
PHP 表单
PHP $_GET
PHP $_POST
PHP Date
PHP Include
PHP 文件处理
PHP 文件上传
PHP Cookies
PHP Sessions
PHP 发送邮件

PHP 中的 JewishToJD() 函数


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

登陆 | 还没注册?