gmstrftime

(PHP 3>= 3.0.12, PHP 4 >= 4.0.0)

gmstrftime --  Formatteer een GMT/CUT time/date volgens locale settings

Omschrijving

string gmstrftime (string format [, int timestamp])

Gedraagt zich hetzelfde als strftime() behalve dat de time wordt teruggegeven als Greenwich Mean Time (GMT). Bijvoorbeeld wanneer uitgevoerd in Eastern Standard Time (GMT -0500), de eerste regel hieronder print "Dec 31 1998 20:00:00", terwijl de tweede print "Jan 01 1999 01:00:00".

Voorbeeld 1. gmstrftime() voorbeeld


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";
      

Zie ook strftime().