A complete collection of PHP date and time related functions

伊谢尔伦
Release: 2016-11-22 09:22:24
Original
1959 people have browsed it

checkdate — Verify a Gregorian date

date_add — alias DateTime::add

date_create_from_format — alias DateTime::createFromFormat

date_create_immutable_from_format — alias DateTimeImmutable::createFromFormat

date_create_ immutable — alias DateTimeImmutable::__construct

date_create — Alias ​​DateTime::__construct

date_date_set — Alias ​​DateTime::setDate

date_default_timezone_get — Get the default time zone used by all date and time functions in a script

date_default_timezone_set — Set the default time zone used by all date and time functions in a script

date_diff — alias DateTime::diff

date_format — alias DateTime::format

date_get_last_errors — alias DateTime::getLastErrors

date_interval_create_from_date_string — alias DateInterval::createFromDateString

date_interval_format — alias DateInterval::format

date_isodate_set — alias DateTime ::setISODate

date_modify — alias DateTime::modify

date_offset_get — alias DateTime::getOffset

date_parse_from_format — Get info about given date formatted according to the specified format

date_parse — Returns associative array with detailed info about given date

date_sub — Alias ​​DateTime::sub

date_sun_info — Returns an array with information about sunset/sunrise and twilight begin/end

date_sunrise — Returns the sunrise time for a given date and location

date_sunset — Returns a given date Sunset time with location

date_time_set — alias DateTime::setTime

date_timestamp_get — alias DateTime::getTimestamp

date_timestamp_set — alias DateTime::setTimestamp

date_timezone_get — alias DateTime::getTimezone

date_timezone_set — alias DateTime::setTimezone

date — Format a local time/date

getdate — Get date/time information

gettimeofday — Get the current time

gmdate — Format a GMT/UTC date/time

gmmktime — Get the UNIX time of a GMT date Stamp

gmstrftime — Format GMT/UTC time/date according to locale settings

idate — Format local time and date as an integer

localtime — Get local time

microtime — Return current Unix timestamp and microseconds

mktime — Get the Unix timestamp of a date

strftime — Format the local time/date according to the locale

strptime — Parse the date/time generated by strftime

strtotime — Parse any English text datetime description into Unix time Stamp

time — Returns the current Unix timestamp

timezone_abbreviations_list — alias DateTimeZone::listAbbreviations

timezone_identifiers_list — alias DateTimeZone::listIdentifiers

timezone_location_get — alias DateTimeZone::getLocation

timezone_name_from_abbr — Returns the timezone name from abbreviation

timezone_name_get — alias DateTimeZone::getName

timezone_offset_get — alias DateTimeZone::getOffset

timezone_open — alias DateTimeZone::__construct

timezone_transitions_get — alias DateTimeZone::getTransitions

timezone_version_get — Gets the version of the timezonedb


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template