CakeFest 2024: The Official CakePHP Conference

预定义常量

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

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

SUNFUNCS_RET_TIMESTAMPint
时间戳
SUNFUNCS_RET_STRINGint
小时:分钟(例如:08:02)
SUNFUNCS_RET_DOUBLEint
浮点数表示的小时(例如:8.75)
add a note

User Contributed Notes

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