Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

gettimeofday

(PHP 3>= 3.0.7, PHP 4 , PHP 5)

gettimeofday -- Gibt die aktuelle Zeit zurück

Beschreibung:

array gettimeofday ( void )

Es handelt sich um eine Schnittstelle zum Systemaufruf von gettimeofday(2). Die Zeitangaben werden als assoziatives Array zurück gegeben. Folgende Arrayelemente sind vorhanden:

  • "sec" - Sekunden

  • "usec" - Microsekunden

  • "minuteswest" - Minuten westlich von Greenwich

  • "dsttime" - Art der Korrektur der Sommerzeit

Beispiel 1. gettimeofday() Beispiel

<?php
print_r
(gettimeofday());
?>

Das Ergebnis sieht so ähnlich wie folgt aus:

Array
(
    [sec] => 1073687692
    [usec] => 934726
    [minuteswest] => -60
    [dsttime] => 0
)

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "PHP Handbuch". See Index Page for more info about Authorship and Copyright.

1999-2005 Linuxinfor.com. No rights reserved.