[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/ramsey/uuid/src/Provider/Time/ -> FixedTimeProvider.php (summary)

This file is part of the ramsey/uuid library For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Copyright: Copyright (c) Ben Ramsey <[email protected]>
License: http://opensource.org/licenses/MIT MIT
File Size: 77 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

FixedTimeProvider:: (4 methods):
  __construct()
  setUsec()
  setSec()
  currentTime()


Class: FixedTimeProvider  - X-Ref

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)   X-Ref
Constructs a `FixedTimeProvider` using the provided `$timestamp`

param: int[] Array containing `sec` and `usec` components of a timestamp

setUsec($value)   X-Ref
Sets the `usec` component of the timestamp

param: int $value The `usec` value to set

setSec($value)   X-Ref
Sets the `sec` component of the timestamp

param: int $value The `sec` value to set

currentTime()   X-Ref
Returns a timestamp array

return: int[] Array containing `sec` and `usec` components of a timestamp



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer