UTCSecondIdGenerator

Ecng.Common

Identifier generator based on the current Unix time in seconds (UTC).

Inherits: IdGenerator

Methods

GetNextId
public override long GetNextId()
result = uTCSecondIdGenerator.GetNextId()

Gets the next identifier based on Unix time in seconds.

Returns: The Unix timestamp in seconds.