略微加速
PHP官方手册 - 互联网笔记
首页
IT
PHP手册
Elasticsearch
SVN手册
互联网
博客
登陆
注册
PHP - Manual: Date/Time 函数
2025-03-31
checkdate »
« DatePeriod::getStartDate
PHP 手册
函数参考
日期与时间相关扩展
日期/时间
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 版本
发现了问题?
了解如何改进此页面
•
提交拉取请求
•
报告一个错误
+
添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
官方地址:
https://www.php.net/manual/en/ref.datetime.php
有任何技术问题请点击这里
网站运营推广招聘
IT
PHP
编程语言
开发编程
Linux
科技
Elasticsearch
HTML/CSS/XML
面试
数据库
网络
JAVA
NoSQL
C/C++
Golang
Git
算法
操作系统
正则表达式
Redis
互联网
MySql
JavaScript
运维
软件
国际
架构设计
Mac OS
TCP/IP
Excel
Windows
Vim
Socket
Oracle
VR
MongoDB
Python
运营
MemCache
商业
硬件
电子
娱乐
设计
nginx
摄影
游戏
WordPress
HTTP
团建
数码电器
Docker
广告
广告
laravel查看orm生成的sql
PHPStorm ESC 会退出命令行
laravel orm中DB::insert方法导致内存泄漏的问题解决方法
docker-compose启动nginx与php-fpm
composer install参数
php7 安装fileinfo扩展
php位值,解决 PHP 中 usort 在值相同时改变原始位置的问题
preg_split — 通过一个正则表达式分隔字符串
[PHP] inet_pton/inet_ntop IP地址转换函数
Composer的Packagist资源
[鸟哥]PHP_INT_MIN 和 -9223372036854775808
PHP json解析(json_decode)页面工具
opcache预加载
mysql面试题
PHP 8.1
ADORecordSet对象
利用php soap实现web service
支持php7的性能采集扩展
adodb连接mysql多个数据库的问题
PHP - mysql_real_escape_string()与mysql_escape_string() 的区别
联系我们
半月雨文化
可降解耗材网
蓝云环保
78免费小説
上海网站seo优化
工程造价
币安app官网下载
币安app官网下载
coinbase
贷款信息
seo查询
北京半月雨文化科技有限公司
.版权所有
京ICP备12026184号-3