Skip to content

Commit

Permalink
Snip comment in id-to-snowflake.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Ammon Smith committed Jun 25, 2019
1 parent 764b54b commit 53fa91f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions id-to-snowflake.sql
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 53fa91f

Please sign in to comment.