aboutsummaryrefslogtreecommitdiff
path: root/discord/utils.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-03-06 03:42:13 -0500
committerRapptz <[email protected]>2016-03-06 03:42:13 -0500
commitd133f9f76187d42c56db0a9237bc6d7ccb0bd11e (patch)
treeb2de13350aec2137f0531dcaac32698867a95327 /discord/utils.py
parentAdd util method to extract creation date from discord ids (diff)
downloaddiscord.py-d133f9f76187d42c56db0a9237bc6d7ccb0bd11e.tar.xz
discord.py-d133f9f76187d42c56db0a9237bc6d7ccb0bd11e.zip
Clean up documentation of utils.snowflake_time
Diffstat (limited to 'discord/utils.py')
-rw-r--r--discord/utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/discord/utils.py b/discord/utils.py
index 0440c468..20a91b6f 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -75,9 +75,7 @@ def parse_time(timestamp):
return None
def snowflake_time(id):
- '''
- Returns the creation date of a discord id.
- '''
+ """Returns the creation date in UTC of a discord id."""
return datetime.datetime.utcfromtimestamp(((int(id) >> 22) + DISCORD_EPOCH) / 1000)
def find(predicate, seq):