Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Note
titleContent Freeze

As of July 25th, 2023, there is a content freeze on this page.

The time.extractHours() API returns the hours portion of a time or timestamp.

Section


Column
width50%

Parameters


  • Length (optional)
  • Decimals (optional)


Column
width25%

Return Value


Numeric hour value of a time or timestamp.


Column
width25%

RPG Equivalent


EXTRCT


Examples

...

...


Code Block
languagejavascript
pjs.define("time", { type: 'time', initValue: '12:11:12'})
pjs.define("num", { type: "zoned", length: 7, decimals: 2}) 
  
num = time.extractHours(1);

return num;
//2

...