date.subtractMicroseconds()

date.subtractMicroseconds()

Description

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

Parameters

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

Return Value

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

Example

pjs.define("time", { type: 'time', initValue: '12:00:05.0000' }); time = time.subtractMicroseconds(1000000); return time; // 12:00:04

RPG Equivalent

%MSECONDS()


Related Pages