checkdate

(PHP 4, PHP 5, PHP 7) Validate a Gregorian date bool checkdate ( int $month, int $day, int $year ) Checks the validity of the date formed by the arguments. A date is considered valid if each parameter is properly defined. Parameters: month The month is between 1 and 12 inclusive. day The day is within the allowed number of days for the

DatePeriod::__construct

(PHP 5 >= 5.3.0, PHP 7) Creates a new DatePeriod object public DatePeriod::__construct ( DateTimeInterface $start , DateInterval $interval , int $recurrences [, int $options ] ) public DatePeriod::__construct ( DateTimeInterface $start , DateInterval $interval , DateTimeInterface $end [, int $options ] ) public DatePeriod::__construct ( string $isostr [, int $options ] ) Creates a new DatePeriod object. Parameters:

DateInterval::format

(PHP 5 >= 5.3.0, PHP 7) Formats the interval public string DateInterval::format ( string $format ) Formats the interval. Parameters: format The following characters are recognized in the format parameter string. Each format character must be prefixed by a percent sign (%). format character Description Example values % Literal % % Y Years, numeric, at least 2 digits

DateInterval::createFromDateString

(PHP 5 >= 5.3.0, PHP 7) Sets up a DateInterval from the relative parts of the string public static DateInterval DateInterval::createFromDateString ( string $time ) Uses the normal date parsers and sets up a DateInterval from the relative parts of the parsed string. Parameters: time A date with relative parts. Specifically, the relative formats supported by the parser u

DateInterval::__construct

(PHP 5 >= 5.3.0, PHP 7) Creates a new DateInterval object public DateInterval::__construct ( string $interval_spec ) Creates a new DateInterval object. Parameters: interval_spec An interval specification. The format starts with the letter P, for "period." Each duration period is represented by an integer value followed by a period designator. If the duration contains time elements, t

DateTimeZone::listIdentifiers

(PHP 5 >= 5.2.0, PHP 7) Returns a numerically indexed array containing all defined timezone identifiers public static array DateTimeZone::listIdentifiers ([ int $what = DateTimeZone::ALL [, string $country = NULL ]] ) Object oriented style Procedural style array timezone_identifiers_list ([ int $what = DateTimeZone::ALL [, string $country = NULL ]] ) Parameters: what

DateTimeZone::listAbbreviations

(PHP 5 >= 5.2.0, PHP 7) Returns associative array containing dst, offset and the timezone name public static array DateTimeZone::listAbbreviations ( void ) Object oriented style Procedural style array timezone_abbreviations_list ( void ) Returns: Returns array on success or FALSE on failure. Examples: A timezone_abbreviations_list()

DateTimeZone::getTransitions

(PHP 5 >= 5.2.0, PHP 7) Returns all transitions for the timezone public array DateTimeZone::getTransitions ([ int $timestamp_begin [, int $timestamp_end ]] ) Object oriented style Procedural style array timezone_transitions_get ( DateTimeZone $object [, int $timestamp_begin [, int $timestamp_end ]] ) Parameters: object Procedural style only: A DateTimeZone object returne

DateTimeZone::getOffset

(PHP 5 >= 5.2.0, PHP 7) Returns the timezone offset from GMT public int DateTimeZone::getOffset ( DateTime $datetime ) Object oriented style Procedural style int timezone_offset_get ( DateTimeZone $object , DateTime $datetime ) This function returns the offset to GMT for the date/time specified in the datetime parameter. The GMT offset is calculated with the timezone information contained in the DateTimeZone object being

DateTimeZone::getName

(PHP 5 >= 5.2.0, PHP 7) Returns the name of the timezone public string DateTimeZone::getName ( void ) Object oriented style Procedural style string timezone_name_get ( DateTimeZone $object ) Returns the name of the timezone. Parameters: object The DateTimeZone for which to get a name. Returns: One of the timezone names in the list of timezone