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 13 Current »

Content Freeze

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

The time.addHours() API adds the number of hours that are passed to the date or time.

Parameters


  • Numeric Value

Return Value


Date or time with specified number of hours added.

RPG Equivalent


%HOURS()

Examples


pjs.define("time", { type: 'time', initValue: '12:00:00'});

time = time.addHours(1);

return time;
//13:00:00
  • No labels