8.16.0.1
13 Datetime Arithmetic
An interface that defines datetime arithmetic operations. It is implemented by
all objects that satisfy datetime?, moment?, or period?.
procedure
(datetime-arithmetic-provider? x) → boolean
x : any/c
procedure
(+period dt p) → datetime-arithmetic-provider?
dt : datetime-arithmetic-provider? p : period?
procedure
(-period dt p) → datetime-arithmetic-provider?
dt : datetime-arithmetic-provider? p : period?
Adds or subtracts p to/from dt, returning a fresh
datetime arithmetic provider the same type as dt.
Examples: