Sql server transfer time long time

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') - be converted into common time stamp
SELECT DATEDIFF (S, '1970-01-01 00:00:00 ', '2006-10-1309: 04: 48.000') - 8 * 3600-- ordinary time into a timestamp

Guess you like

Origin www.cnblogs.com/gzhbk/p/11408553.html