Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Current »

Content 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.

Parameters


  • Length (optional)
  • Decimals (optional)

Return Value


Numeric hour value of a time or timestamp.

RPG Equivalent


EXTRCT

Examples



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
  • No labels