php 日期函数大全,php日期和时间相关函数大全

checkdate — 验证一个格里高里日期

date_add — 别名 DateTime::add

date_create_from_format — 别名 DateTime::createFromFormat

date_create_immutable_from_format — 别名 DateTimeImmutable::createFromFormat

date_create_immutable — 别名 DateTimeImmutable::__construct

date_create — 别名 DateTime::__construct

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 — 别名 DateTime::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_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 — 别名 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

date — 格式化一个本地时间/日期

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 the timezone name from abbreviation

timezone_name_get — 别名 DateTimeZone::getName

timezone_offset_get — 别名 DateTimeZone::getOffset

timezone_open — 别名 DateTimeZone::__construct

timezone_transitions_get — 别名 DateTimeZone::getTransitions

timezone_version_get — Gets the version of the timezonedb

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值