Date and Time
- checkdate - Validate a Gregorian date
- date - Format a local time/date
- date_add - Alias of DateTime::add
- date_create - Alias of DateTime::__construct
- date_create_from_format - Alias of DateTime::createFromFormat
- date_create_immutable - Alias of DateTimeImmutable::__construct
- date_create_immutable_from_format - Alias of DateTimeImmutable::createFromFormat
- date_date_set - Alias of DateTime::setDate
- date_default_timezone_get - Gets the default timezone used by all date/time functions in a script
- date_default_timezone_set - Sets the default timezone used by all date/time functions in a script
- date_diff - Alias of DateTime::diff
- date_format - Alias of DateTime::format
- date_get_last_errors - Alias of DateTime::getLastErrors
- date_interval_create_from_date_string - Alias of DateInterval::createFromDateString
- date_interval_format - Alias of DateInterval::format
- date_isodate_set - Alias of DateTime::setISODate
- date_modify - Alias of DateTime::modify
- date_offset_get - Alias of DateTime::getOffset
- date_parse - Returns associative array with detailed info about given date/time
- date_parse_from_format - Get info about given date formatted according to the specified format
- date_sub - Alias of DateTime::sub
- date_sun_info - Returns an array with information about sunset/sunrise and twilight begin/end
- date_sunrise - Returns time of sunrise for a given day and location
- date_sunset - Returns time of sunset for a given day and location
- date_time_set - Alias of DateTime::setTime
- date_timestamp_get - Alias of DateTime::getTimestamp
- date_timestamp_set - Alias of DateTime::setTimestamp
- date_timezone_get - Alias of DateTime::getTimezone
- date_timezone_set - Alias of DateTime::setTimezone
- DateInterval::__construct - Creates a new DateInterval object
- DateInterval::createFromDateString - Sets up a DateInterval from the relative parts of the string
- DateInterval::format - Formats the interval
- DatePeriod::__construct - Creates a new DatePeriod object
- DatePeriod::getDateInterval - Gets the interval
- DatePeriod::getEndDate - Gets the end date
- DatePeriod::getRecurrences - Gets the number of recurrences
- DatePeriod::getStartDate - Gets the start date
- DateTime::__construct - Returns new DateTime object
- DateTime::__set_state - The __set_state handler
- DateTime::__wakeup - The __wakeup handler
- DateTime::add - Adds an amount of days, months, years, hours, minutes and seconds to a
DateTime object
- DateTime::createFromFormat - Parses a time string according to a specified format
- DateTime::createFromImmutable - Returns new DateTime object encapsulating the given DateTimeImmutable object
- DateTime::createFromInterface - Returns new DateTime object encapsulating the given DateTimeInterface object
- DateTime::diff - Returns the difference between two DateTime objects
- DateTime::format - Returns date formatted according to given format
- DateTime::getLastErrors - Returns the warnings and errors
- DateTime::getOffset - Returns the timezone offset
- DateTime::getTimestamp - Gets the Unix timestamp
- DateTime::getTimezone - Return time zone relative to given DateTime
- DateTime::modify - Alters the timestamp
- DateTime::setDate - Sets the date
- DateTime::setISODate - Sets the ISO date
- DateTime::setTime - Sets the time
- DateTime::setTimestamp - Sets the date and time based on an Unix timestamp
- DateTime::setTimezone - Sets the time zone for the DateTime object
- DateTime::sub - Subtracts an amount of days, months, years, hours, minutes and seconds from
a DateTime object
- DateTimeImmutable::__construct - Returns new DateTimeImmutable object
- DateTimeImmutable::__set_state - The __set_state handler
- DateTimeImmutable::add - Adds an amount of days, months, years, hours, minutes and seconds
- DateTimeImmutable::createFromFormat - Parses a time string according to a specified format
- DateTimeImmutable::createFromInterface - Returns new DateTimeImmutable object encapsulating the given DateTimeInterface object
- DateTimeImmutable::createFromMutable - Returns new DateTimeImmutable object encapsulating the given DateTime object
- DateTimeImmutable::getLastErrors - Returns the warnings and errors
- DateTimeImmutable::modify - Creates a new object with modified timestamp
- DateTimeImmutable::setDate - Sets the date
- DateTimeImmutable::setISODate - Sets the ISO date
- DateTimeImmutable::setTime - Sets the time
- DateTimeImmutable::setTimestamp - Sets the date and time based on a Unix timestamp
- DateTimeImmutable::setTimezone - Sets the time zone
- DateTimeImmutable::sub - Subtracts an amount of days, months, years, hours, minutes and seconds
- DateTimeZone::__construct - Creates new DateTimeZone object
- DateTimeZone::getLocation - Returns location information for a timezone
- DateTimeZone::getName - Returns the name of the timezone
- DateTimeZone::getOffset - Returns the timezone offset from GMT
- DateTimeZone::getTransitions - Returns all transitions for the timezone
- DateTimeZone::listAbbreviations - Returns associative array containing dst, offset and the timezone name
- DateTimeZone::listIdentifiers - Returns a numerically indexed array containing all defined timezone identifiers
- getdate - Get date/time information
- gettimeofday - Get current time
- gmdate - Format a GMT/UTC date/time
- gmmktime - Get Unix timestamp for a GMT date
- gmstrftime - Format a GMT/UTC time/date according to locale settings
- idate - Format a local time/date as integer
- localtime - Get the local time
- microtime - Return current Unix timestamp with microseconds
- mktime - Get Unix timestamp for a date
- strftime - Format a local time/date according to locale settings
- strptime - Parse a time/date generated with <function>strftime</function>
- strtotime - Parse about any English textual datetime description into a Unix timestamp
- time - Return current Unix timestamp
- timezone_abbreviations_list - Alias of DateTimeZone::listAbbreviations
- timezone_identifiers_list - Alias of DateTimeZone::listIdentifiers
- timezone_location_get - Alias of DateTimeZone::getLocation
- timezone_name_from_abbr - Returns the timezone name from abbreviation
- timezone_name_get - Alias of DateTimeZone::getName
- timezone_offset_get - Alias of DateTimeZone::getOffset
- timezone_open - Alias of DateTimeZone::__construct
- timezone_transitions_get - Alias of DateTimeZone::getTransitions
- timezone_version_get - Gets the version of the timezonedb
Search Functions
Date and Time Related Extensions