class BinaryUtils (View source)

Provides binary math utilities

Methods

static int
applyVariant($clockSeqHi)

Applies the RFC 4122 variant field to the clock_seq_hi_and_reserved field

static int
applyVersion(string $timeHi, integer $version)

Applies the RFC 4122 version number to the time_hi_and_version field

Details

static int applyVariant($clockSeqHi)

Applies the RFC 4122 variant field to the clock_seq_hi_and_reserved field

Parameters

$clockSeqHi

Return Value

int The high field of the clock sequence multiplexed with the variant

static int applyVersion(string $timeHi, integer $version)

Applies the RFC 4122 version number to the time_hi_and_version field

Parameters

string $timeHi
integer $version

Return Value

int The high field of the timestamp multiplexed with the version number