interface TimeConverterInterface (View source)

TimeConverterInterface provides 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