From 53fa91fc2089510bed9db2ead9ed668c6276361e Mon Sep 17 00:00:00 2001 From: Ammon Smith Date: Tue, 25 Jun 2019 14:43:02 -0400 Subject: [PATCH] Snip comment in id-to-snowflake.sql --- id-to-snowflake.sql | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/id-to-snowflake.sql b/id-to-snowflake.sql index f7643bd..c57bef2 100644 --- a/id-to-snowflake.sql +++ b/id-to-snowflake.sql @@ -1,7 +1,4 @@ --- Helper function to convert Discord IDs into snowflakes purely within Postgres --- Equivalent in Python: --- datetime.utcfromtimestamp(((id >> 22) + DISCORD_EPOCH) / 1000) --- where DISCORD_EPOCH is 1420070400000 +-- Helper function to convert Discord IDs into snowflakes purely within Postgres. CREATE FUNCTION snowflake_time(id BIGINT) RETURNS TIMESTAMP WITH TIME ZONE