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

Breadcrumb

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

function CombGenerator::timestamp

Returns current timestamp a string integer, precise to 0.00001 seconds

1 call to CombGenerator::timestamp()
CombGenerator::generate in vendor/ramsey/uuid/src/Generator/CombGenerator.php
@inheritDoc

File

vendor/ramsey/uuid/src/Generator/CombGenerator.php, line 109

Class

CombGenerator
CombGenerator generates COMBs (combined UUID/timestamp)

Namespace

Ramsey\Uuid\Generator

Code

private function timestamp() : string {
    $time = explode(' ', microtime(false));
    return $time[1] . substr($time[0], 2, 5);
}

API Navigation

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