function FeatureSet::buildTimeConverter
Returns a time converter configured for this environment
1 call to FeatureSet::buildTimeConverter()
- FeatureSet::setCalculator in vendor/
ramsey/ uuid/ src/ FeatureSet.php - Sets the calculator to use in this environment
File
-
vendor/
ramsey/ uuid/ src/ FeatureSet.php, line 362
Class
- FeatureSet
- FeatureSet detects and exposes available features in the current environment
Namespace
Ramsey\UuidCode
private function buildTimeConverter(CalculatorInterface $calculator) : TimeConverterInterface {
$genericConverter = new GenericTimeConverter($calculator);
if ($this->is64BitSystem()) {
return new PhpTimeConverter($calculator, $genericConverter);
}
return $genericConverter;
}