« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 4 of about 4 for recurrences (0.001 sec.)
DatePeriod クラス | PHP 8.3 11724
DatePeriod クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8) はじめに 日付の期間をあらわします。 日付の期間を使うと、指定した期間に定期的に発生する内容を反復処理できます。 クラス概要 class DatePeriod implements IteratorAggregate { /* 定数 */ public con ... $ current ; public readonly ? DateTimeInterface $ end ; public readonly ? DateInterval $ interval ; public readonly int $ recurrences ; public readonly bool $ include_start_date ; public readonly bool $ include_end_date ; /* メソッド */ public function __c ... onstruct ( DateTimeInterface $start , DateInterval $interval , int $recurrences , int $options = 0 ) public function __construct ( DateTimeInterface $start , DateInterval $interval , DateTimeInterface $ ... tic public function getDateInterval (): DateInterval public function getEndDate (): ? DateTimeInterface public function getRecurrences (): ? int public function getStartDate (): DateTimeInterface } 定義済み定数 DatePeriod::EXCLUDE_START_DATE int 開始日を含ま ...
https://man.mtool.work/php/8.3/class.dateperiod.html
DatePeriod::getRecurrences — 繰り返しの数を取得する | PHP 8.3 10059
DatePeriod::getRecurrences (PHP 7 >= 7.2.17/7.3.4, PHP 8) DatePeriod::getRecurrences — 繰り返しの数を取得する 説明 オブジェクト指向型 public function DatePeriod::getRecurrences (): ? int 繰り返しの数を取得します。 パラメータ この関数にはパラ ... メータはありません。 戻り値 DatePeriod のコンストラクタの $recurrences に明示的に渡すことで設定した 繰り返しの数を返します。設定されていない場合、 null を返します。 例 例1 DatePeriod::getRecurr ... ateTime ( '2018-12-31 00:00:00' ); $end = new DateTime ( '2021-12-31 00:00:00' ); $interval = new DateInterval ( 'P1M' ); $recurrences = 5 ; // コンストラクタで明示的に繰り返し回数を設定 $period = new DatePeriod ( $start , $interval , $recurrences , DatePer ... iod :: EXCLUDE_START_DATE ); echo $period -> getRecurrences (), "\n" ; $period = new DatePeriod ( $start , $interval , $recurrences ); echo $period -> getRecurrences (), "\n" ; $peri ...
https://man.mtool.work/php/8.3/dateperiod.getrecurrences.html
DatePeriod::__construct — 新しい DatePeriod オブジェクトを作成する | PHP 8.3 8414
DatePeriod::__construct (PHP 5 >= 5.3.0, PHP 7, PHP 8) DatePeriod::__construct — 新しい DatePeriod オブジェクトを作成する 説明 public function DatePeriod::__construct ( DateTimeInterface $start , DateInterval $interval , int $recurrences , ... さんの DateTimeImmutable や DateTime を生成するイテレータとして使えます。 パラメータ start 、 interval に加えて、 end または recurrences (繰り返し回数) のいずれかを指定します。 返されるオブジェクトのクラスは、 start オブジェクトの祖先クラスである DateTimeImmu ... 同じになります。 パラメータ start 期間の開始日。デフォルトでは、 結果セットに含まれています。 interval 期間内での発生間隔。 recurrences 反復回数。 返される結果の数は、この値よりひとつ大きくなります。 なぜなら、デフォルトでは結果セットに開始日が含まれているか ... Exception がスローされるようになりました。 8.2.0 定数 DatePeriod::INCLUDE_END_DATE が追加されました。 7.2.19, 7.3.6, 7.4.0 recurrences は、 0 より大きな値が必須になりました。 例 例1 DatePeriod の例 <?php $start = new DateTime ( '2012-07-01' ); $interval = n ...
https://man.mtool.work/php/8.3/dateperiod.construct.html
DatePeriod::getEndDate — 終了日を取得する | PHP 8.3 6749
DatePeriod::getEndDate (PHP 5 >= 5.6.5, PHP 7, PHP 8) DatePeriod::getEndDate — 終了日を取得する 説明 オブジェクト指向型 public function DatePeriod::getEndDate (): ? DateTimeInterface 期間の終了日を取得します。 パラメータ この関数にはパラメー ... タはありません。 戻り値 DatePeriod が終了日を持たない場合は null を返します。 たとえば、 recurrences パラメータや、終了日のない isostr パラメータを用いて初期化されている場合です。 DatePeriod が DateTimeImmutable オブジェクト ...
https://man.mtool.work/php/8.3/dateperiod.getenddate.html
PREV 1 NEXT