Lines Matching refs:DatePeriod
2 DatePeriod arguments/wrong arguments
5 $dp = new DatePeriod(new \DateTimeImmutable("2023-01-13 12:29:30"), DateInterval::createFromDateStr…
6 echo get_class($dp) == 'DatePeriod' ? "OK\n" : "FAIL\n";
8 $dp = new DatePeriod(new \DateTimeImmutable("2023-01-13 12:29:30"), DateInterval::createFromDateStr…
9 echo get_class($dp) == 'DatePeriod' ? "OK\n" : "FAIL\n";
11 $dp = new DatePeriod("R4/2012-07-01T00:00:00Z/P7D");
12 echo get_class($dp) == 'DatePeriod' ? "OK\n" : "FAIL\n";
14 $dp = DatePeriod::createFromISO8601String("R4/2012-07-01T00:00:00Z/P7D");
15 echo get_class($dp) == 'DatePeriod' ? "OK\n" : "FAIL\n";
18 $dp = new DatePeriod("2023-01-13 17:24:58", DateInterval::createFromDateString("tomorrow"), 4);
28 Deprecated: Calling DatePeriod::__construct(string $isostr, int $options = 0) is deprecated, use Da…
31 TypeError: DatePeriod::__construct() accepts (DateTimeInterface, DateInterval, int [, int]), or (Da…