current_datetime()
最后更新于:2021-11-25 22:32:50
current_datetime()Retrieves the current time as an object with the timezone from settings.
响应
(DateTimeImmutable) Date and time object.
源文件
文件: gc-includes/functions.php
function current_datetime() {
return new DateTimeImmutable( 'now', gc_timezone() );
}