date.addSeconds()

date.addSeconds()

Description

The addSeconds() method adds the specified number of seconds to a time or timestamp value and returns the result.

Parameters

  1. Numeric value - The number of seconds to add.

Return Value

A time or timestamp with the specified number of seconds added.

Example

pjs.define("time", { type: 'time', initValue: '12:00:00' }); time = time.addSeconds(10); return time; // 12:00:10

RPG Equivalent

%SECONDS()


Related Pages