/ Published in: SQL
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
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
Comments
 Subscribe to comments
                    Subscribe to comments
                
                