Better PHP Documentation
opinionated
Open main menu
Get Started
Documentation
Community
Training
Better PHP Documentation
Close menu
Get Started
Documentation
Community
Training
Log in
切换语言:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
Date/Time 函数
目录
checkdate
— 验证一个格里高里日期
date
— 格式化 Unix 时间戳
date_add
— 别名 DateTime::add
date_create
— create a new DateTime object
date_create_from_format
— 别名 DateTime::createFromFormat
date_create_immutable
— create a new DateTimeImmutable object
date_create_immutable_from_format
— 别名 DateTimeImmutable::createFromFormat
date_date_set
— 别名 DateTime::setDate
date_default_timezone_get
— 取得脚本中所有日期/时间函数所使用的默认时区
date_default_timezone_set
— 设置脚本中所有日期/时间函数使用的默认时区
date_diff
— 别名 DateTime::diff
date_format
— 别名 DateTime::format
date_get_last_errors
— 别名 DateTimeImmutable::getLastErrors
date_interval_create_from_date_string
— 别名 DateInterval::createFromDateString
date_interval_format
— 别名 DateInterval::format
date_isodate_set
— 别名 DateTime::setISODate
date_modify
— 别名 DateTime::modify
date_offset_get
— 别名 DateTime::getOffset
date_parse
— 返回指定日期/时间的详细信息的关联数组
date_parse_from_format
— Get info about given date formatted according to the specified format
date_sub
— 别名 DateTime::sub
date_sun_info
— Returns an array with information about sunset/sunrise and twilight begin/end
date_sunrise
— 返回给定的日期与地点的日出时间
date_sunset
— 返回给定的日期与地点的日落时间
date_time_set
— 别名 DateTime::setTime
date_timestamp_get
— 别名 DateTime::getTimestamp
date_timestamp_set
— 别名 DateTime::setTimestamp
date_timezone_get
— 别名 DateTime::getTimezone
date_timezone_set
— 别名 DateTime::setTimezone
getdate
— 获取日期/时间信息
gettimeofday
— 取得当前时间
gmdate
— 格式化 GMT/UTC 日期/时间
gmmktime
— 取得 GMT 日期的 UNIX 时间戳
gmstrftime
— 根据区域设置格式化 GMT/UTC 时间/日期
idate
— 将本地日期/时间格式化为整数
localtime
— 取得本地时间
microtime
— 返回当前 Unix 时间戳和微秒数
mktime
— 取得一个日期的 Unix 时间戳
strftime
— 根据区域设置格式化本地时间/日期
strptime
— 解析由 strftime 生成的日期/时间
strtotime
— 将任何英文文本日期时间描述解析为 Unix 时间戳
time
— 返回当前的 Unix 时间戳
timezone_abbreviations_list
— 别名 DateTimeZone::listAbbreviations
timezone_identifiers_list
— 别名 DateTimeZone::listIdentifiers
timezone_location_get
— 别名 DateTimeZone::getLocation
timezone_name_from_abbr
— Returns a timezone name by guessing from abbreviation and UTC offset
timezone_name_get
— 别名 DateTimeZone::getName
timezone_offset_get
— 别名 DateTimeZone::getOffset
timezone_open
— 别名 DateTimeZone::__construct
timezone_transitions_get
— 别名 DateTimeZone::getTransitions
timezone_version_get
— 获取 timezonedb 版本
发现了问题?
了解如何改进此页面
•
提交拉取请求
•
报告一个错误
+
添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
0
pcntl_sigtimedwait
Waits for signals, with a timeout
0
similar_text
Calculate the similarity between two strings
0
boolval
Get the boolean value of a variable
0
curl_multi_close
Close a set of cURL handles
0
imap_body
Read the message body
0
mb_strpos
Find position of first occurrence of string in a string
0
pg_send_prepare
Sends a request to create a prepared statement with the given parameters, without waiting for completion
0
swoole_native_socket_bind
0
Arr::prependKeysWith
0
zend_version
Gets the version of the current Zend engine
^