View Source AshUlid (ash_ulid v1.0.0)
Helpers for working with ULIDs.
Summary
Functions
Generate a Crockford Base32 encoded ULID string with current time.
Generate a Crockford Base32 encoded ULID string with a provided Unix timestamp.
Generate a binary ULID with current time.
Generate a binary ULID with a provided Unix timestamp.
Types
@type raw() :: <<_::128>>
A raw binary representation of a ULID.
@type t() :: <<_::208>>
A Crockford Base32 encoded ULID string.
Functions
@spec generate() :: t()
Generate a Crockford Base32 encoded ULID string with current time.
@spec generate(time :: non_neg_integer()) :: t()
Generate a Crockford Base32 encoded ULID string with a provided Unix timestamp.
@spec generate_binary() :: raw()
Generate a binary ULID with current time.
@spec generate_binary(time :: non_neg_integer()) :: raw()
Generate a binary ULID with a provided Unix timestamp.