预定义常量
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)

User Contributed Notes
There are no user contributed notes for this page.