PHP日期和时间
1.验证日期。
checkdate()如果提供的日期有效,返回TRUE,否则返回FALSE。
bool bheckdate(int month,int day,int year);
2.格式化日期。
date()函数返回根据预定义的格式制定的指令格式化的时间和日期的字符串形式。
string date(string format [,int timestamp]);
date("F d, Y"); August 22,2007
date("l"); Monday
date("m-d-Y"); 07-15-2010
3.了解当前时间的更多信息。(???)
gettimeofday()函数返回与当前时间有关的元素所组成的一个关联数组。
mixed ......
阅读全文