Appearance
TryGetV7TimestampUtc Method
Definition
- Namespace:
JASE.Extensions - Assembly:
JASE.IdGenerator.dll
bool TryGetV7TimestampUtc(Guid uuid, out DateTimeOffset timestampUtc)
csharp
bool TryGetV7TimestampUtc(Guid uuid, out DateTimeOffset timestampUtc)Try to extract the embedded UTC timestamp from a UUIDv7.
Parameters
| Name | Description |
|---|---|
timestampUtc | Decoded timestamp in UTC, if valid. |
uuid | Candidate UUID. |
Returns
True if uuid is v7 and the timestamp could be decoded.