Polysemy.Time.Diff
Description
Diff Combinator, Internal
diff :: forall dt u i1 i2 diff. (TimeUnit diff, TimeUnit u, Torsor dt diff, Instant i1 dt, Instant i2 dt) => i1 -> i2 -> u Source #
Subtract two arbitrary values that can be converted to an Instant.
Instant
since :: forall u t d dt diff (r :: EffectRow). (TimeUnit diff, TimeUnit u, Instant t dt, Torsor dt diff, Member (Time t d) r) => t -> Sem r u Source #
Calculate the duration between the given Instant and the current time.