Versions Compared

Key

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

The date.extractHours() method returns the number of hours portion in a datetime field or time-stamp.

Parameters
  1. Length(Optional)
  2. Decimals(Optional)

Return Value

The number of hours in a datetime field or time-stamp

Example

 

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