Packages@robojs/mock
timestampToSnowflake()
Function: timestampToSnowflake()
function timestampToSnowflake(timestamp): stringCreate a snowflake from a specific timestamp Useful for creating IDs that sort correctly by time
Parameters
| Parameter | Type |
|---|---|
timestamp | number |
Returns
string
