| |
| * Link führt ins Internet |
|
| |
Befehl | Version | Beschreibung | Beispiel | Ausgabe |
Befehl
| string gmstrftime ( string Format [, int Timestamp] ) |
Version
| (PHP 3 >= 3.0.12, PHP 4, PHP 5) |
Beschreibung
Die Funktion gmstrftime() bewirkt das Gleiche wie strftime(), aber mit einem
gravierenden Unterschied: gmstrftime() liefert ihre Ergebnisse als GMT-Zeit
(Greenwich Mean Time) zurück.
Siehe auch:
. strftime()
. microtime()
. time() |
Beispiel
<?PHP
echo strftime ("%b %d %Y %H:%M:%S", mktime(0,0,0,12,31,04));
echo "\n";
echo gmstrftime ("%b %d %Y %H:%M:%S", mktime(0,0,0,12,31,04));
echo "\n";
echo gmstrftime ("%b %d %Y %H:%M:%S", time());
?>
|
Ausgabe
Dec 31 2004 00:00:00
Dec 30 2004 23:00:00
Jul 06 2004 21:16:48
|
|
|
|
|
|
|
|