def expiring.at

bend-kit-oauth2@0.11.0.1 · oauth2.bend:213

import bend-kit-oauth2@0.11.0.1/oauth2.bend as Oauth2
import Base
import bend-kit-time@0.3.0.0/time.bend as Time

213def expiring.at(e: Maybe<&2, Time.Instant>, now: Time.Instant, +skew: U32) -> Bool:
214  match e:
215    case None{}:
216      False{}
217    case Some{at}:
218      Bool.not(Cmp.is_lt(Time.Instant.cmp(Time.Instant.add(now, Time.Duration.of_secs(Time.i64(skew))), at)))

Uses (10)

Used by (1)