PHP中date()和strtotime()函数

checkdate(12,31,2000);//返回true或者false
date();
getdate();//数组信息
microtime();//微秒
mktime(0,0,0,12,36,2001);//超出自动延长
strtotime("now");
strtotime("3 October 2005");
strtotime("+5 hours");
strtotime("+1 week");
strtotime("+1 week 3 days 7 hours 5 seconds");
strtotime("next Monday");
strtotime("last Sunday");
select id,DATE_FORMAT(FROM_UNIXTIME(createdTime),'%Y-%m-%d %H:%i:%s') from wechat_bigdata_vote where signUpId=68;


猜你喜欢

转载自blog.csdn.net/u010340022/article/details/80699616
今日推荐