1. 时间戳类型转日期:
- 10位数时间戳
select from_unixtime(1564581347,'yyyy-MM-dd HH:mm:ss') ;
- 13位数时间戳
select from_unixtime(1564581347793/1000,'yyyy-MM-dd HH:mm:ss') ;
select from_unixtime(1564581347,'yyyy-MM-dd HH:mm:ss') ;
select from_unixtime(1564581347793/1000,'yyyy-MM-dd HH:mm:ss') ;