PHP日期和时间

1.验证日期

bool checkdate(int month, int day, int year)

2.格式化日期和时间

string date(format[, timestamp])

 

3.mixed gettimeofday([return_float])

转换友好时间值

4.getdate([timestamp])

5.处理时间戳

time()

mktime(hour[,minute[,second[,month[,day[,year[,is_dst]]]]]])

 

1.设置默认的本地化环境

setlocale(mixed category,array locale)

2.strftime(format[,timestamp])

3.显示网页的最新修改日期

getlastmod()

posted @ 2011-02-09 11:01  Jake.Xu  阅读(172)  评论(0编辑  收藏  举报