date.subtractMinutes()

date.subtractMinutes()

Description

The subtractMinutes() method subtracts the specified number of minutes from a time or timestamp value and returns the result.

Parameters

  1. Numeric value - The number of minutes to subtract.

Return Value

A time or timestamp with the specified number of minutes subtracted.

Example

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

RPG Equivalent

%MINUTES()


Related Pages