MS SQL Server 2008 - 将UTC时间戳转换为EST

时间:2014-08-08 13:15:18

标签: sql sql-server-2008

我正在使用MS SQL Server 2008并具有以下语句来显示时间戳

select  CAST (DATEADD(SECOND, dbo.V_ALERTS.TIME_STAMP /1000 + 8*60*60, '19700101') AS VARCHAR(50)) as "Time_in_UTC",*
from dbo.V_ALERTS where FILEPATH like '%usb%' 
ORDER BY dbo.V_ALERTS.TIME_STAMP DESC

数据库中的时间戳是UTC,如何转换为东部标准时间(EST)?

0 个答案:

没有答案