Class: SnowflakeUtil
Constructors
constructor
• new SnowflakeUtil()
Methods
toBinary
▸ Static
toBinary(sf
): string
Converts a snowflake to a binary string.
Credit
Parameters
Name | Type | Description |
---|---|---|
sf | string | Snowflake |
Returns
string
Binary representation of the snowflake
Defined in
packages/disploy/src/utils/SnowflakeUtil.ts:8
toTimestamp
▸ Static
toTimestamp(sf
): number
Converts a snowflake to a timestamp.
Parameters
Name | Type | Description |
---|---|---|
sf | string | Snowflake |
Returns
number
Timestamp of the snowflake
Defined in
packages/disploy/src/utils/SnowflakeUtil.ts:28