gmstrftime
(PHP 3>= 3.0.12, PHP 4 )
gmstrftime -- Formatează data/timpul GMT/CUT conform cu setările locale
Descriere
string
gmstrftime ( string format [, int timestamp])
Se comportă la fel ca strftime() exceptând faptul că timpul returnat este Greenwich Mean Time (GMT). De exemplu, când este rulat în Timpul Standard Estic (GMT -0500), prima linie de mai jos va afișa "Dec 31 1998 20:00:00", în timp ce a doua va afișa "Jan 01 1999 01:00:00".
Exemplu 1. Exemplu 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"; |
|
Vezi, de asemenea, strftime().