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

Breadcrumb

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

function MongoDbStore::createMongoDateTime

Parameters

float $seconds Seconds since 1970-01-01T00:00:00.000Z supporting millisecond precision. Defaults to now.:

2 calls to MongoDbStore::createMongoDateTime()
MongoDbStore::exists in vendor/symfony/lock/Store/MongoDbStore.php
Returns whether or not the resource exists in the storage.
MongoDbStore::upsert in vendor/symfony/lock/Store/MongoDbStore.php
Update or Insert a Key.

File

vendor/symfony/lock/Store/MongoDbStore.php, line 356

Class

MongoDbStore
MongoDbStore is a StoreInterface implementation using MongoDB as a storage engine. Support for MongoDB server >=2.2 due to use of TTL indexes.

Namespace

Symfony\Component\Lock\Store

Code

private function createMongoDateTime(float $seconds) : UTCDateTime {
    return new UTCDateTime((int) ($seconds * 1000));
}

API Navigation

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