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\StoreCode
private function createMongoDateTime(float $seconds) : UTCDateTime {
return new UTCDateTime((int) ($seconds * 1000));
}