add-seconds

xod/datetime/add-seconds

Adds seconds to a datetime
add-seconds
@/add-seconds
Adds seconds to a datetime
IN@/datetime
Tnumber
Seconds to add. A negative value rewinds datetime back.
add-seconds
IN
OUT
T
OUT@/datetime

C++ implementation

node {
    void evaluate(Context ctx) {
        auto inValue = getValue<input_IN>(ctx);
        int32_t sec = getValue<input_T>(ctx);
        emitValue<output_OUT>(ctx, inValue + sec);
    }
}