普通时间转13位时间戳
SELECT CONVERT(BIGINT,DATEDIFF(MI,'1970-01-01 00:00:00.000', GETUTCDATE())) * 60000 + DATEPART(S,GETUTCDATE()) * 1000 + DATEPART(MS, GETUTCDATE())-
--普通时间转换成10位时间戳SELECT DATEDIFF(S,'1970-01-01 00:00:00', GETDATE())
-13位时间戳 转 普通时间SELECT DATEADD (MS ,CONVERT(BIGINT,1582687127323) % 60000 ,DATEADD(MI,CONVERT(BIGINT,1892687217313) / 60000,'1970-01-01 08:00:00.000'))
--10位时间戳转换成普通时间SELECT DATEADD(S,1658471321,'1970-01-01 00:00:00')