PHP frenchtojd() 函数

PHP 教程 · 2019-01-23 07:44:14

实例

把法国共和历法的日期转换为儒略日计数,然后再转换回法国共和历法的日期:

<?php
$jd=frenchtojd(3,3,14);
echo $jd . "<br>";
echo jdtofrench($jd);
?>

定义和用法

frenchtojd() 函数把法国共和历法的日期转换为儒略日计数。

提示:法国共和历法是法国革命期间提出的一种历法,从 1793 年晚期开始,法国政府使用了大约 12 年。该函数只转换 1 到 14 年内的日期(格利高里日期 1792 年 9 月 22 日 - 1806 年 9 月 22 日)。

提示:请参阅 jdtofrench() 函数,用来把儒略日计数转换为法国共和历法的日期。

语法

frenchtojd(month,day,year);

参数 描述
month 必需。一个从 1 到 13 的数字,规定月。
day 必需。一个从 1 到 30 的数字,规定日。
year 必需。一个从 1 到 14 的数字,规定年。

技术细节

返回值: 返回儒略日数字。
PHP 版本: 4+

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Algorithms for Image Processing and Computer Vision

Algorithms for Image Processing and Computer Vision

Parker, J. R. / 2010-12 / 687.00元

A cookbook of algorithms for common image processing applications Thanks to advances in computer hardware and software, algorithms have been developed that support sophisticated image processing with......一起来看看 《Algorithms for Image Processing and Computer Vision》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具