date.extractSeconds()



The date.extractSeconds() method returns the seconds portion of a time variable or timestamp

Parameters
  1. Length(Optional)

  2. Decimals(Optional)

Return Value

The number of seconds in a time variable or timestamp

Example



pjs.define("time", { type: 'time', initValue: '12:11:12'}) pjs.define("num", { type: "zoned", length: 7, decimals: 2}) num = time.extractSeconds(7,2); return num; //12

RPG Equivalent

EXTRCT