获取当前时间戳
time(); // 1539238975
时间戳格式转换成时间日期格式
date('Y-m-d H:i:s', time()); // 2018-10-11 14:24:06
时间日期格式转换成时间戳格式
strtotime('2018-10-11 14:24:06'); // 1539239046