BigNumberTimeConverter
Previously used to integrate moontoast/math as a bignum arithmetic library, BigNumberTimeConverter is deprecated in favor of GenericTimeConverter
- Full name:
\Ramsey\Uuid\Converter\Time\BigNumberTimeConverter
- Warning: this class is deprecated. This means that this class will likely be removed in a future version.
- This class implements:
\Ramsey\Uuid\Converter\TimeConverterInterface
Properties
converter
Methods
__construct
calculateTime
Uses the provided seconds and micro-seconds to calculate the count of 100-nanosecond intervals since UTC 00:00:00.00, 15 October 1582, for RFC 4122 variant UUIDs
Parameters:
Parameter | Type | Description |
---|---|---|
$seconds |
string | A string representation of the number of seconds since the Unix epoch for the time to calculate |
$microseconds |
string | A string representation of the micro-seconds associated with the time to calculate |
Return Value:
The full UUID timestamp as a Hexadecimal value
convertTime
Converts a timestamp extracted from a UUID to a Unix timestamp
Parameters:
Parameter | Type | Description |
---|---|---|
$uuidTimestamp |
\Ramsey\Uuid\Type\Hexadecimal | A hexadecimal representation of a UUID timestamp; a UUID timestamp is a count of 100-nanosecond intervals since UTC 00:00:00.00, 15 October 1582. |
Return Value:
An instance of {@see \Ramsey\Uuid\Type\Time}
Automatically generated on 2025-03-18