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

Content Freeze

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

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

Parameters


  • Numeric Value

Return Value


Date or time with specified number of seconds added.

RPG Equivalent


%SECONDS()

Examples


pjs.define("time", { type: 'time', initValue: '12:00:00'});
  
time = time.addSeconds(10);
  
return time;
//12:00:10
  • No labels