Skip to content

Instantly share code, notes, and snippets.

@m4tm4t
Created February 13, 2011 08:47
Show Gist options
  • Save m4tm4t/824546 to your computer and use it in GitHub Desktop.
Save m4tm4t/824546 to your computer and use it in GitHub Desktop.
CREATE OR REPLACE FUNCTION from_unixtime(integer) RETURNS timestamp AS '
SELECT to_timestamp($1)::timestamp AS result
' LANGUAGE 'SQL';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment