(D/DT ?q) is the derivative with respect to time of the time-dependent-quantity ?q. It is undefined on other quantities, including constant-quantities.
(<- (D/Dt ?Q) (If (Time-Dependent-Quantity ?Q) (Deriv ?Q)))