live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/pledge-core


@orangecheck/pledge-core / isoUtcGreaterThan

Function: isoUtcGreaterThan()

function isoUtcGreaterThan(a: string, b: string): boolean;

Defined in: pledge-core/src/delegation.ts:149

Compare two strict ISO 8601 UTC timestamps (YYYY-MM-DDTHH:MM:SSZ). Returns true iff a is strictly later than b. Lexicographic compare works because the format is fixed-width.

Parameters

ParameterType
astring
bstring

Returns

boolean