FROM_UNIXTIME(unix_timestamp)是MySQL里的时间函数。
UNIX_TIMESTAMP() 是与之相对正好相反的时间函数 。
e.g.
select unix_timestamp('2017-01-01')
返回值:1483200000
select from_unixtime(1483200000)
返回值:2017-01-01 00:00:00
FROM_UNIXTIME(unix_timestamp)是MySQL里的时间函数。
UNIX_TIMESTAMP() 是与之相对正好相反的时间函数 。
e.g.
select unix_timestamp('2017-01-01')
返回值:1483200000
select from_unixtime(1483200000)
返回值:2017-01-01 00:00:00