disco.util.snowflake
Constants
UNIX_EPOCH = datetime(1970, 1, 1)
{'type': 'assign', 'targets': ['DISCORD_EPOCH'], 'value': 1420070400000}
Functions
to_datetime(snowflake
)
Converts a snowflake to a UTC datetime.
UNIX_EPOCH = datetime(1970, 1, 1)
{'type': 'assign', 'targets': ['DISCORD_EPOCH'], 'value': 1420070400000}
snowflake
)Converts a snowflake to a UTC datetime.
snowflake
)snowflake
)date
)ts
)ts
)i
)shard_count, guild_id)