gmstrftime
(PHP 3>= 3.0.12, PHP 4 )
gmstrftime --
Formatta una data/ora GMT/UTC secondo i parametri locali
Descrizione
string
gmstrftime ( string formato [, int timestamp])
Si comporta allo stesso modo della funzione strftime() eccetto che
l'orario restituito è del Greenwich Mean Time (GMT). Ad esempio, quando si è
nell' Eastern Standard Time (GMT -0500), la prima linea sotto scrive
"Dec 31 1998 20:00:00", mentre la seconda scrive "Jan 01 1999
01:00:00".
Esempio 1. Esempio di gmstrftime()
setlocale ('LC_TIME', 'en_US'); echo strftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n"; echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
|
|
Guarda anche strftime().