/ Published in: SQL
Expand |
Embed | Plain Text
CREATE FUNCTION UNIX_TIMESTAMP_TO_DATETIME ( @timestamp integer ) RETURNS datetime AS BEGIN /* Function body */ DECLARE @RETURN datetime SELECT @RETURN = DATEADD(second, @timestamp,{d '1970-01-01'}); RETURN @RETURN END
You need to login to post a comment.
