View Source UlidFlake (ulid_flake v1.0.0)

Ulid-Flake is a compact 64-bit ULID variant inspired by ULID and Twitter's Snowflake.

Summary

Functions

Returns a specification to start this module under a supervisor.

Creates a Ulid-Flake instance from an integer.

Creates a Ulid-Flake instance from a Base32 string.

Creates a Ulid-Flake instance from a Unix epoch time in seconds.

Generates a new Ulid-Flake identifier.

Parses a Base32-encoded Ulid-Flake identifier.

Returns the randomness component of the Ulid-Flake identifier.

Returns the timestamp component of the Ulid-Flake identifier.

Returns the Base32 string representation of the Ulid-Flake identifier.

Returns the binary string representation of the Ulid-Flake identifier.

Returns the hexadecimal string representation of the Ulid-Flake identifier.

Returns the integer representation of the Ulid-Flake identifier.

Returns the Base32 string representation of the Ulid-Flake identifier. alias for to_base32/1

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Creates a Ulid-Flake instance from an integer.

Creates a Ulid-Flake instance from a Base32 string.

Link to this function

from_unix_epoch_time(unix_time_sec)

View Source

Creates a Ulid-Flake instance from a Unix epoch time in seconds.

Generates a new Ulid-Flake identifier.

Parses a Base32-encoded Ulid-Flake identifier.

Returns the randomness component of the Ulid-Flake identifier.

Returns the timestamp component of the Ulid-Flake identifier.

Returns the Base32 string representation of the Ulid-Flake identifier.

Returns the binary string representation of the Ulid-Flake identifier.

Returns the hexadecimal string representation of the Ulid-Flake identifier.

Returns the integer representation of the Ulid-Flake identifier.

Returns the Base32 string representation of the Ulid-Flake identifier. alias for to_base32/1