Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (array $timestamp) | |
setUsec ($value) | |
setSec ($value) | |
currentTime () | |
Attributs privés | |
$fixedTime | |
FixedTimeProvider uses an previously-generated timestamp to provide the time
This provider allows the use of a previously-generated timestamp, such as one stored in a database, when creating version 1 UUIDs.
__construct | ( | array | $timestamp | ) |
Constructs a FixedTimeProvider
using the provided $timestamp
int[] | Array containing sec and usec components of a timestamp |
InvalidArgumentException | if the $timestamp does not contain sec or usec components |
currentTime | ( | ) |
Returns a timestamp array
sec
and usec
components of a timestamp Implémente TimeProviderInterface.
Références FixedTimeProvider\$fixedTime.
setSec | ( | $value | ) |
setUsec | ( | $value | ) |
Sets the usec
component of the timestamp
int | $value | The usec value to set |
Références $value.
|
private |
Référencé par FixedTimeProvider\currentTime().