--HQL msfrom_unixtime(CAST(obtained_ms/1000 AS BIGINT), 'yyyy-MM-dd HH:mm:ss')--SQL msfrom_unixtime(time_in_ms / 1000)--SQL datedate(from_unixtime(time_in_ms / 1000)) as dt