略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 预定义常量

2024-04-27

预定义常量

DATE_ constants 从 PHP 5.1.1 开始定义, 提供了一些标准的日期时间的表达, 可以用在日期时间格式化的函数中(例如 date())。

下列常量从 PHP 5.1.2 开始可用, 设定了 date_sunrise()date_sunset() 函数返回的格式。

SUNFUNCS_RET_TIMESTAMP (integer)
时间戳
SUNFUNCS_RET_STRING (integer)
小时:分钟(例如:08:02)
SUNFUNCS_RET_DOUBLE (integer)
浮点数表示的小时(例如:8.75)
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/datetime.constants.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3