时间与日期函数
| 函数名 | 结果 |
|---|---|
| now() | 2017-05-19 11:45:42 |
| current_date() | 2017-05-19 |
| current_time() | 11:46:26 |
| unix_timestamp() | 1495165645 |
| unix_timestamp('2017-05-19 11:45:42') | 1495165542 |
| from_unixtime(1495165645) | 2017-05-19 11:47:25 |
| from_unixtime(1495165645, '%Y-%m-%d %H:%i:%s') | 2017-05-19 11:47:25 |