常用时间函数
1.now(),显示系统当前的时间,包括年-月-日-时-分-秒
2.获取时间差值:DATEDIFF(date1,date2); 要获取年份差值即/365
3.date_format(date,format),format来确定要得到时间中的哪个具体属性值
%y -- 年 %m--月 %d--日 %h--时 %i--分 %s--秒
4.To_day(date):将日期转换为其距公元一年一月一日的天数
1.now(),显示系统当前的时间,包括年-月-日-时-分-秒
2.获取时间差值:DATEDIFF(date1,date2); 要获取年份差值即/365
3.date_format(date,format),format来确定要得到时间中的哪个具体属性值
%y -- 年 %m--月 %d--日 %h--时 %i--分 %s--秒
4.To_day(date):将日期转换为其距公元一年一月一日的天数