module Servo::Util::SnowflakeUtil
Overview
Utility methods for interacting with a Servo::Model::Snowflake.
Defined in:
util/snowflake_util.crConstant Summary
-
DISCORD_EPOCH =
1420070400000_u64 -
The discord epoch used to determine the creation time of a
Snowflake. This is the first second of 2015.
Class Method Summary
-
.get_creation_time(snowflake : Servo::Model::Snowflake) : Time
Helper method for retrieving the time a
Snowflakewas created.
Class Method Detail
def self.get_creation_time(snowflake : Servo::Model::Snowflake) : Time
#
Helper method for retrieving the time a Snowflake was created.