日期转时间戳 unix_timestamp
1)获取当前时间戳
select unix_timestamp();
2)日期(年月日)转时间戳
select unix_timestamp('2022-12-24');

3)日期(年月日 ,时分秒)转时间戳
select unix_timestamp('2022-12-24 20:20:20');
时间戳转日期 FROM_UNIXTIME
select from_unixtime(1671884420, '%Y-%m-%d %H:%i:%s')