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

struct State {
};

// clang-format off
{{ GENERATED_CODE }}
// clang-format on

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