Skip to content

TimeGeneratorInterface

A time generator generates strings of binary data based on a node ID, clock sequence, and the current time

  • Full name: \Ramsey\Uuid\Generator\TimeGeneratorInterface

Methods

generate

Generate a binary string from a node ID, clock sequence, and current time

public generate(\Ramsey\Uuid\Type\Hexadecimal|int|string|null $node = null, int|null $clockSeq = null): string

Parameters:

Parameter Type Description
$node \Ramsey\Uuid\Type\Hexadecimal|int|string|null A 48-bit number representing the
hardware address; this number may be represented as an integer or a
hexadecimal string
$clockSeq int|null A 14-bit number used to help avoid duplicates
that could arise when the clock is set backwards in time or if the
node ID changes

Return Value:

A binary string



Automatically generated on 2025-03-18