Snowflake¶
snowflake
¶
DISCORD_EPOCH = 1420070400000
module-attribute
¶
Snowflake
¶
Bases: int
flowchart TD
scurrypy.core.snowflake.Snowflake[Snowflake]
click scurrypy.core.snowflake.Snowflake href "" "scurrypy.core.snowflake.Snowflake"
Represents a Discord snowflake ID.
timestamp_ms: int
property
¶
Timestamp associated with the ID as an integer in milliseconds (ms).
datetime: datetime
property
¶
Timestamp associated with the ID as a datetime object.
isoformat: str
property
¶
Timestamp associated with the ID as a string in ISO8601 format.
worker_id: int
property
¶
Worker ID associated with the ID.
process_id: int
property
¶
Process ID associated with the ID.
increment: int
property
¶
Increment associated with the ID.