function Profiler::getTimestamp
1 call to Profiler::getTimestamp()
- Profiler::find in vendor/
symfony/ http-kernel/ Profiler/ Profiler.php - Finds profiler tokens for the given criteria.
File
-
vendor/
symfony/ http-kernel/ Profiler/ Profiler.php, line 230
Class
- Profiler
- Profiler.
Namespace
Symfony\Component\HttpKernel\ProfilerCode
private function getTimestamp(?string $value) : ?int {
if (null === $value || '' === $value) {
return null;
}
try {
$value = new \DateTimeImmutable(is_numeric($value) ? '@' . $value : $value);
} catch (\Exception) {
return null;
}
return $value->getTimestamp();
}