时间戳转换成DateTime

select DateAdd(hour,8,Dateadd(ss,时间戳,'1970-01-01'))

 
--1970/01/01+时间戳(秒数)+8小时
--因GMT是中央时区,北京在东8区,相差8个小时
原文地址:https://www.cnblogs.com/lrl45/p/5135489.html