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.

to_unix(snowflake)

to_unix_ms(snowflake)

from_datetime(date)

from_timestamp(ts)

from_timestamp_ms(ts)

to_snowflake(i)

calculate_shard(shard_count, guild_id)

results matching ""

    No results matching ""