Common functions in php date and time? & Lt ;? Phpdate_default_timezone_set (prc); set the time zone echomktime (). & lt; br & gt; current timestamp echotime (). & lt; br & gt; echodate (Y-m-dH: I: s ). & lt; br & gt; get common functions in php date and time
?
"; // The current timestamp echo time ()."
"; Echo date (" Y-m-d H: I: s ")."
"; // Obtain the current system Time echo date (" Y, m, d, H, I minute, s seconds ")."
"; Echo strtotime (" 05 May 2010 ")."
"; // Conversion time $ arr = getdate (); // Obtain the current system Time array print_r (getdate (); echo"
$ Arr [year]-$ arr [mon]-$ arr [mday] $ arr [hours]: $ arr [minutes]: $ arr [seconds] "; echo"
". $ Arr ['Year']. "-". $ arr ['mon']. "-". $ arr ['mday']. "". $ arr ['urs']. ":". $ arr ['minutes ']. ":". $ arr ['seconds']."
"; Echo microtime ()."
"; // Subtle print_r (explode (" ", microtime (); list ($ msec, $ sec) = explode (" ", microtime (); echo"
", $ Msec ,"
", $ Sec;?>
?