PHP 5 >= 5.6.5, PHP 7, PHP 8
DatePeriod::getDateInterval - Gets the interval
Code Examples

DatePeriod::getDateInterval( ): public DateInterval

Gets a DateInterval object representing the interval used for the period.


This function has no parameters.

Return Values

Returns a DateInterval object

Example of DatePeriod::getDateInterval

Show all examples for DatePeriod::getDateInterval

PHP Version:

Function DatePeriod::getDateInterval:

Date and Time Functions

Most used PHP functions