WPDev.one
Core Function
View Source on Trac ↗

current_datetime()

current_datetime( )

Retrieves the current time as an object using the site's timezone.

Return Value

(DateTimeImmutable)
Date and time object.

Function Information

Since Version
5.3.0
Source File
wp-includes/functions.php
Advertisement