gmstrftime
(PHP 4, PHP 5)
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".
Example#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().