PHP日期和时间

1.验证日期

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

2.格式化日期和时间

string date(format[, timestamp])

PHP日期和时间_第1张图片

 

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()

你可能感兴趣的:(PHP)