get_date_from_gmt() (funzione WordPress) restituisce, sotto forma di stringa, una data GMT convertita nel formato corretto per il sito.
tips&tricks
Sintassi
get_date_from_gmt($data, $formato[facoltativo])
| parametro | descrizione |
|---|---|
| $data | Una data, nel formato Y-m-d H:i:s |
| $formato | Il percorso relativo da aggiungere all’URL. In mancanza, il valore di default è Y-m-d H:i:s |
Esempi
echo get_date_from_gmt("2018-01-1 00:00:00");
/*
2018-01-01 01:00:00
*/
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment