6.3.90.900
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
Returns #t if x implements gen:datetime-arithmetic-provider;
#f otherwise.
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: