Time
A value object representing a timestamp
This class exists for type-safety purposes, to ensure that timestamps used by ramsey/uuid are truly timestamp integers and not some other kind of string or integer.
- Full name:
\Ramsey\Uuid\Type\Time
- This class is marked as final and can't be subclassed
- This class implements:
\Ramsey\Uuid\Type\TypeInterface
- This class is a Final class
Properties
seconds
microseconds
Methods
__construct
public __construct(float|int|string|\Ramsey\Uuid\Type\Integer $seconds, float|int|string|\Ramsey\Uuid\Type\Integer $microseconds): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$seconds |
float|int|string|\Ramsey\Uuid\Type\Integer | |
$microseconds |
float|int|string|\Ramsey\Uuid\Type\Integer |
getSeconds
getMicroseconds
toString
__toString
jsonSerialize
serialize
__serialize
unserialize
Constructs the object from a serialized string representation
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
string | The serialized string representation of the object |
__unserialize
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
array{seconds?: string, microseconds?: string} |
Automatically generated on 2025-03-18