<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                > DatePeriod 類表示一個時間周期。 > DatePeriod 類繼承自Traversable預定義接口 ``` DatePeriod implements Traversable { /* 常量 */ const integer EXCLUDE_START_DATE = 1 ;//在構造函數中使用,表示不包含開始時間。 /* 屬性 */ public integer $recurrences ; public boolean $include_start_date ; public DateTimeInterface $start ; public DateTimeInterface $current ; public DateTimeInterface $end ; public DateInterval $interval ; /* 方法 */ public __construct ( DateTimeInterface $start , DateInterval $interval , int $recurrences [, int $options ] ) public __construct ( DateTimeInterface $start , DateInterval $interval , DateTimeInterface $end [, int $options ] ) public __construct ( string $isostr [, int $options ] ) public getDateInterval ( void ) : DateInterval public getEndDate ( void ) : DateTimeInterface public getRecurrences ( void ) : int public getStartDate ( void ) : DateTimeInterface } ``` ``` // 獲取兩個時間內的所有日期實例 $begin = new DateTime('2012-08-01'); $end = new DateTime( '2012-08-31' ); $interval = new DateInterval('P2D'); // 時間間隔為2天 $daterange = new DatePeriod($begin, $interval,$end,DatePeriod::EXCLUDE_START_DATE ); foreach($daterange as $date){ echo $date->format("Ymd") . "<br>"; } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看