class PhpTimeConverter implements TimeConverterInterface (View source)

PhpTimeConverter uses built-in PHP functions and standard math operations available to the PHP programming language to provide facilities for converting parts of time into representations that may be used in UUIDs

Methods

string[]
calculateTime(string $seconds, string $microSeconds)

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

Details

string[] calculateTime(string $seconds, string $microSeconds)

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

Parameters

string $seconds
string $microSeconds

Return Value

string[] An array guaranteed to contain low, mid, and high keys