<?php date_default_timezone_get('PRC'); cal_days_in_month(CAL_GREGORIAN, 2, 2000); // checkdate( $month , $day, $year); date("Y-m-d H:i:s" , time()) ; // D 星期几(字母表示), w (0-6) N(1-7) 星期 // z 年份中的第几天, W 第几个周, F(网站的月份, 英文 ) ,t(这个月的天数) // L 是否是瑞年 mktime( $hour = date("H"), $minute = date("i"), $second = date("s"), $month = date('n'), // 没有前道 0 $day = date("j"), // 没有前道0 $year = date("Y") ); strtotime("now"); strtotime("+1 day"); strtotime("-1 day"); strtotime("+1 week 2 days 4 hours 2 seconds"); strtotime("next Monday"); strtotime("last Monday"); $nextweek = time() + (7*24*60*60);
ipbbs.net
离线