Documentation

TimeConverterInterface

TimeConverterInterface provides facilities for converting parts of time into representations that may be used in UUIDs

Table of Contents

calculateTime()  : array<string|int, string>
Uses the provided seconds and micro-seconds to calculate the time_low, time_mid, and time_high fields used by RFC 4122 version 1 UUIDs

Methods

calculateTime()

Uses the provided seconds and micro-seconds to calculate the time_low, time_mid, and time_high fields used by RFC 4122 version 1 UUIDs

public calculateTime(string $seconds, string $microSeconds) : array<string|int, string>
Parameters
$seconds : string
$microSeconds : string
Tags
throws
UnsatisfiedDependencyException

if called on a 32-bit system and Moontoast\Math\BigNumber is not present

link
http://tools.ietf.org/html/rfc4122#section-4.2.2
Return values
array<string|int, string>

An array guaranteed to contain low, mid, and hi keys

Search results