PHP 8.3.0 RC 6 available for testing

预定义常量

已定义的 DATE_ 常量提供了一些标准的日期时间的表达,可以用在日期时间格式化的函数中(例如 date())。

下列常量指定了 date_sunrise() 和 date_sunset() 函数返回的格式。

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

User Contributed Notes

There are no user contributed notes for this page.
To Top