【问题标题】:Php last day of the month in the Hijri calendar回历中每月最后一天的 PHP
【发布时间】:2015-09-04 13:37:40
【问题描述】:

我们手头有这样的数据。回历中每月的最后一天。如何获得?

1437-03-21
1437-03-22
1437-03-23
1437-03-24
1437-03-25
1437-03-26
1437-03-27
1437-03-28
1437-03-29
1437-03-30
1437-04-01
1437-04-02
1437-04-03
1437-04-04
1437-04-05
1437-04-06
1437-04-07

【问题讨论】:

  • 我很确定有一种算法可以通过您最喜欢的搜索引擎轻松找到。
  • @m02ph3u5 不幸的是我找不到:(

标签: php calendar hijri


【解决方案1】:

尝试使用 HijriDateLib http://github.com/hubaishan/hijridatelib 使用函数 calendar\days_in_month

<?php
require_once('hijri.class.php');
echo (new hijri\Calendar()).days_in_month(3,1437);
?>

【讨论】:

    猜你喜欢
    • 2013-07-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多