Documentation

BinaryUtils
in package

Provides binary math utilities

Table of Contents

applyVariant()  : int
Applies the RFC 4122 variant field to the `clock_seq_hi_and_reserved` field
applyVersion()  : int
Applies the RFC 4122 version number to the `time_hi_and_version` field

Methods

applyVariant()

Applies the RFC 4122 variant field to the `clock_seq_hi_and_reserved` field

public static applyVariant( $clockSeqHi) : int
Parameters
$clockSeqHi :
Tags
link
http://tools.ietf.org/html/rfc4122#section-4.1.1
Return values
int

The high field of the clock sequence multiplexed with the variant

applyVersion()

Applies the RFC 4122 version number to the `time_hi_and_version` field

public static applyVersion(string $timeHi, int $version) : int
Parameters
$timeHi : string
$version : int
Tags
link
http://tools.ietf.org/html/rfc4122#section-4.1.3
Return values
int

The high field of the timestamp multiplexed with the version number

Search results