snowflakeid(Representation,EpochMilliseconds,TimeUnitMilliseconds,TimestampBits,NodeBits,SequenceBits,Node) — Logtalk 3.100.1

object

# `snowflakeid(Representation,EpochMilliseconds,TimeUnitMilliseconds,TimestampBits,NodeBits,SequenceBits,Node)`

- `Representation` - Snowflake ID representation. Possible values are `integer`, `atom`, `chars`, and `codes`.

- `EpochMilliseconds` - Custom epoch in Unix milliseconds.

- `TimeUnitMilliseconds` - Timestamp unit in milliseconds.

- `TimestampBits` - Number of timestamp bits.

- `NodeBits` - Number of node bits.

- `SequenceBits` - Number of sequence bits.

- `Node` - Node identifier value.

Snowflake ID generic generator.

Availability:
`logtalk_load(snowflakeid(loader))`
Author: Paulo Moura
Version: 1:0:1
Date: 2026-03-13
Compilation flags:
`static, context_switching_calls`
Implements:
`public` snowflakeid_protocol
Uses:
iso8601
os
Remarks:
(none)
Inherited public predicates:
generate/1

## Public predicates

(no local declarations; see entity ancestors if any)

## Protected predicates

(no local declarations; see entity ancestors if any)

## Private predicates

### `last_time_sequence_/2`

Last time and sequence.

Compilation flags:
`dynamic`
Template:
`last_time_sequence_(Time,Sequence)`
Mode and number of proofs:
`last_time_sequence_(?integer,?integer)` - `zero_or_one`

## Operators

(none)

See also

snowflakeid, snowflakeid_twitter, snowflakeid_sonyflake, snowflakeid_instagram, ksuid(Representation,Alphabet), cuid2(Representation,Size,Alphabet), nanoid(Representation,Size,Alphabet)