BigNumberTimeConverter
in package
implements
TimeConverterInterface
BigNumberTimeConverter uses the moontoast/math library's `BigNumber` 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