Skip to content

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 ​

NameDescription
timestampUtcDecoded timestamp in UTC, if valid.
uuidCandidate UUID.

Returns ​

True if uuid is v7 and the timestamp could be decoded.