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
Tags
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
Return values
int —The high field of the timestamp multiplexed with the version number