Just use the value you have, in seconds, added to day 01/01/1970:
SELECT DATEADD(SECOND, Column_Name, CAST('1970-01-01 00:00:00' AS DATETIME))
FROM Table_Name
WHERE Condição
What is the Unix time Stamp?
The Unix time Stamp is a way to track time as a running total of Seconds. This Count Starts at the Unix Epoch on January 1st, 1970 at UTC. Therefore, the Unix time Stamp is merely the number of Seconds between a particular date and the Unix Epoch. It should also be pointed out (Thanks to the comments from Visitors to this site) that this point in time technically does not change no Matter Where you are Located on the Globe. This is very Useful to computer systems for tracking and Sorting dated information in Dynamic and Distributed Applications Both online and client side.
In free translation:
The Unix date and time record is a way to track time as a total of running seconds. This count begins at the Unix Epoch on January 1, 1970, in UTC. Therefore, Unix’s date and time record is merely the number of seconds between a specific date and the Unix Epoch. It should also be noted (thanks to the comments of visitors to this site) that this point in time technically does not change, no matter where you are located on the globe. This is very useful for computer systems for tracking and sorting dated information in dynamic and distributed applications both online and on the customer side.
You have the example of a data in the table and its respective date?
– Sorack
@Sorack I just edited the question providing an example.
– Levi
If your dates are stored as UNIX Epoch time, that is: the number of seconds elapsed from the zero hour of 01/01/1970, then just take the highest value and to calculate the difference in seconds just subtract the two dates, no conversion is required for this calculation.
– anonimo