current_datetime()
current_datetime()
从设置中检索当前时间作为带有时区的对象。
Retrieves the current time as an object with the timezone from settings.
返回(Return)
(DateTimeImmutable)日期和时间对象。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.3.0 | wp-includes/functions.php:94 | 1 function | 1 function |
current_datetime() 为WP2原创文章,链接:https://www.wp2.cn/functions/current_datetime/