PhpTimeConverter
in package
implements
TimeConverterInterface
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
Interfaces, Classes and Traits
- 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
Return values
array<string|int, string> —An array containing low, mid, and high keys