[WORDPRESS] [Funzione] current_datetime()

current_datetime() (funzione WordPress) restituisce, sotto forma di oggetto, l’orario attuale con il timezone delle impostazioni.

tips&tricks

Sintassi

current_datetime()
parametro descrizione

Esempi

print_r(current_datetime()); // DateTimeImmutable Object ( [date] => 2020-08-16 13:32:19.206920 [timezone_type] => 1 [timezone] => +00:00 )

Contenuti correlati

Fonti esterne

funzioni wordpress, wordpress

Related Articles

0 Comment

Rispondi