PHP 中的 JDToFrench() 函数

phpprogrammingserver side programming更新于 2025/8/7 6:37:17

JDToFrench() 函数将儒略日计数转换为法国共和日日期。

语法

jdtofrench(julian_day);

参数

  • julian_day − 儒略日数

返回值

JDToFrench() 函数以"月/日/年"格式的字符串形式返回法国大革命日期。

示例

下面是一个例子 −

<?php
   $res = frenchtojd(11,11,18);
   echo $res . "<br>";
   echo jdtofrench($res);
?>

输出

以下是输出 −

2380715
5/8/14

相关文章