UlidError.TIMESTAMP_OVERFLOW when timestampMs
does not fit in 48 bits.
UlidResult fromParts(ulong timestampMs, const ubyte[RANDOM_LENGTH] randomness) static @safe pure nothrow @nogcBuilds a ULID from a timestamp and an explicit random component.
timestampMs | milliseconds since the Unix epoch, at most MAX_TIMESTAMP. |
randomness | the 80-bit random component, most significant byte first; it becomes bytes 6 to 15 of the ULID. |
UlidError.TIMESTAMP_OVERFLOW when timestampMs
does not fit in 48 bits.