1.時區設置
bool date_default_timezone_set( string $timezone_identifier)
2.date — 格式化一個本地時間/日期
string date ( string $format [, int $timestamp ] )
3.time — 返回當前的 Unix 時間戳
int time ( void )
4.mktime — 取得一個日期的 Unix 時間戳
int mktime ([ int $hour = date("H") [, int $minute = date("i") [, int $second = date("s") [, int $month = date("n") [, int $day = date("j") [, int $year = date("Y") [, int $is_dst = -1 ]]]]]]] )
5.strtotime — 將任何字符串的日期時間描述解析為 Unix 時間戳
int strtotime ( string $time [, int $now = time() ] )
6.microtime — 返回當前 Unix 時間戳和微秒數
mixed microtime ([ bool $get_as_float ] )
7.getdate — 取得日期/時間信息
array getdate ([ int $timestamp = time() ] )
8.gettimeofday — 取得當前時間
mixed gettimeofday ([ bool $return_float = false ] )
9.checkdate — 驗證一個格里高里日期
bool checkdate ( int $month , int $day , int $year )