Manuel PHP

Précédent

 

Suivant

gmstrftime

gmstrftime -- Formate une date/heure GMT/CUT

Description

string gmstrftime(string format, int timestamp);

gmstrftime se comporte exactement comme strftime() hormis le fait líheure utilisée est celle de Greenwich (Greenwich Mean Time (GMT)). Par exemple, dans la zone Eastern Standard Time (est des USA) (GMT -0500), la première ligne de líexemple ci dessous affiche "Dec 31 1998 20:00:00", tandis que la seconde affiche "Jan 01 1999 01:00:00".

Exemple 1. gmstrftime() exemple

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

Voir aussi strftime().

Précédent

Sommaire

Suivant

strftime

Chapitre

getdate