Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Profiler.php

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\Profiler

Code

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();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal