Sql server时间转时间long

DATEDIFF(
S,
'1970-01-01 00:00:00',
a.endor_date
) - 8 * 60*60
) actionTime,

SELECT DATEADD(S,1160701488 + 8 * 3600,'1970-01-01 00:00:00') --时间戳转换成普通时间
SELECT DATEDIFF(S,'1970-01-01 00:00:00', '2006-10-13 09:04:48.000') - 8 * 3600 --普通时间转换成时间戳

猜你喜欢

转载自www.cnblogs.com/gzhbk/p/11408553.html