Date Functions:
unix_timestamp()
获得时间戳from_unixtime(unix_timestamp())
将时间戳转换成时间date_sub
:date_sub(date/timestamp/string startdate, tinyint/smallint/int days)
Subtracts a number of days to startdate: date_sub('2008-12-31', 1) = '2008-12-30'.
求出起始日期减去某个天数之后的日期。